feat: configurable fonts

This commit is contained in:
Michael Aaron Murphy 2024-10-03 21:27:06 +02:00 committed by Michael Murphy
parent e645dee2f0
commit 9e064e7fa0
20 changed files with 143 additions and 124 deletions

View file

@ -320,7 +320,7 @@ impl State {
.padding(0)
.into(),
Some(DemoView::TabB) => settings::view_column(vec![
text("Selection").font(cosmic::font::FONT_SEMIBOLD).into(),
text("Selection").font(cosmic::font::semibold()).into(),
text("Horizontal").into(),
segmented_control::horizontal(&self.selection)
.on_activate(Message::Selection)
@ -378,9 +378,7 @@ impl State {
.spacing(12)
.width(Length::Fill)
.into(),
text("View Switcher")
.font(cosmic::font::FONT_SEMIBOLD)
.into(),
text("View Switcher").font(cosmic::font::semibold()).into(),
text("Horizontal").into(),
tab_bar::horizontal(&self.selection)
.on_activate(Message::Selection)