From c5ea5aa2dd847266fbf83bdc1691bb249632c321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CFrigyes06=E2=80=9D?= Date: Sun, 24 Dec 2023 14:09:14 -0800 Subject: [PATCH] changed default font size, removed unnecessary sizes --- src/gui/mod.rs | 2 +- src/gui/views/list.rs | 4 +--- src/gui/views/settings.rs | 8 ++------ src/gui/widgets/navigation_menu.rs | 3 +-- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 844338b..cb5f744 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -372,7 +372,7 @@ impl UadGui { decorations: true, ..iced::window::Settings::default() }, - default_text_size: 17.0, + default_text_size: 16.0, ..Settings::default() }) } diff --git a/src/gui/views/list.rs b/src/gui/views/list.rs index 6de492b..f47a4e6 100644 --- a/src/gui/views/list.rs +++ b/src/gui/views/list.rs @@ -516,8 +516,7 @@ impl List { .font(ICONS) .width(17) .horizontal_alignment(alignment::Horizontal::Center) - .style(style::Text::Commentary) - .size(16), + .style(style::Text::Commentary), "Let's say you choose user 0. If a selected package on user 0\n\ is set to be uninstalled and if this same package is disabled on user 10,\n\ then the package on both users will be uninstalled.", @@ -525,7 +524,6 @@ impl List { ) .gap(20) .padding(10) - .size(16) .style(style::Container::Tooltip) ] .spacing(10), diff --git a/src/gui/views/settings.rs b/src/gui/views/settings.rs index 41d6aae..7a7d0fe 100644 --- a/src/gui/views/settings.rs +++ b/src/gui/views/settings.rs @@ -211,8 +211,7 @@ impl Settings { let expert_mode_descr = text("Most of unsafe packages are known to bootloop the device if removed.") - .style(style::Text::Commentary) - .size(16); + .style(style::Text::Commentary); let general_ctn = container(column![expert_mode_checkbox, expert_mode_descr].spacing(10)) .padding(10) @@ -236,7 +235,6 @@ impl Settings { let multi_user_mode_descr = row![ text("This will not affect the following protected work profile users: ") - .size(16) .style(style::Text::Commentary), text( phone @@ -247,7 +245,6 @@ impl Settings { .collect::>() .join(", ") ) - .size(16) .style(style::Text::Danger) ]; @@ -266,8 +263,7 @@ impl Settings { let disable_mode_descr = text("In some cases, it can be better to disable a package instead of uninstalling it") - .style(style::Text::Commentary) - .size(16); + .style(style::Text::Commentary); let unavailable_btn = button(text("Unavailable").size(14)) .on_press(Message::UrlPressed(PathBuf::from( diff --git a/src/gui/widgets/navigation_menu.rs b/src/gui/widgets/navigation_menu.rs index 264d809..8e20e38 100644 --- a/src/gui/widgets/navigation_menu.rs +++ b/src/gui/widgets/navigation_menu.rs @@ -23,8 +23,7 @@ pub fn nav_menu<'a>( Text::new("\u{E900}") .font(ICONS) .width(17) - .horizontal_alignment(alignment::Horizontal::Center) - .size(16), + .horizontal_alignment(alignment::Horizontal::Center), ) .on_press(Message::RefreshButtonPressed) .padding(5)