iris: make font families application-named strings

This commit is contained in:
iris committed 2026-09-12 13:09:31 -04:00
1 parent bdc9c914c4
commit 4cbe7baea0
9 files changed
+56 -90

No files matched your search

+2 -6
View File
@@ -80,18 +80,14 @@ fn text<Rsc>(content: impl Into<String>, size: f32, color: PaintId) -> TextBuild
}
fn disclosure<Rsc>(glyph: &'static str, theme: &Theme) -> TextBuilder<Rsc> {
text(glyph, MARK_DP, theme.muted.clone()).family(Family::Icons)
text(glyph, MARK_DP, theme.muted.clone()).family(super::ICON_FAMILY)
}
fn raw_block<Rsc: HasEvents>(rsc: &mut Rsc, body: TextBuilder<Rsc>, theme: &Theme) -> StrongWidget
where
Rsc::State: FocusHost,
{
let field = body
.family(Family::Monospace)
.size(BODY_SIZE)
.wrap(false)
.add(rsc);
let field = body.family(MONOSPACE).size(BODY_SIZE).wrap(false).add(rsc);
field
.scrollable(Axis::X, Pin::Start)
.pad(dp(RAW_PAD_DP))