feat: configurable fonts
This commit is contained in:
parent
e645dee2f0
commit
9e064e7fa0
20 changed files with 143 additions and 124 deletions
|
|
@ -16,7 +16,7 @@ pub fn main() -> cosmic::iced::Result {
|
|||
cosmic::icon_theme::set_default("Pop");
|
||||
#[allow(clippy::field_reassign_with_default)]
|
||||
let settings = Settings {
|
||||
default_font: cosmic::font::FONT,
|
||||
default_font: cosmic::font::default(),
|
||||
window: cosmic::iced::window::Settings {
|
||||
min_size: Some(cosmic::iced::Size::new(600., 300.)),
|
||||
..cosmic::iced::window::Settings::default()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue