changed default font size, removed unnecessary sizes

This commit is contained in:
“Frigyes06” 2023-12-24 14:09:14 -08:00
commit c5ea5aa2dd
No known key found for this signature in database
GPG key ID: B0B05D8121415C57
4 changed files with 5 additions and 12 deletions

View file

@ -372,7 +372,7 @@ impl UadGui {
decorations: true,
..iced::window::Settings::default()
},
default_text_size: 17.0,
default_text_size: 16.0,
..Settings::default()
})
}

View file

@ -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),

View file

@ -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::<Vec<String>>()
.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(

View file

@ -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)