fix: apply reduced item spacing to all elements of bottom bar

This commit is contained in:
Cyrix126 2024-10-06 17:56:14 +02:00
parent 05bc98aa5f
commit 504afbfc2a

View file

@ -46,12 +46,12 @@ impl crate::app::App {
let height = self.size.y / 22.0; let height = self.size.y / 22.0;
// let width = self.size.x; // let width = self.size.x;
ui.style_mut().override_text_style = Some(Name("Bottom".into())); ui.style_mut().override_text_style = Some(Name("Bottom".into()));
ui.spacing_mut().item_spacing = ui.spacing().item_spacing / 2.0;
ui.horizontal(|ui| { ui.horizontal(|ui| {
ui.group(|ui| { ui.group(|ui| {
let size = vec2(0.0, height); let size = vec2(0.0, height);
// [Gupax Version] // [Gupax Version]
// Is yellow if the user updated and should (but isn't required to) restart. // Is yellow if the user updated and should (but isn't required to) restart.
ui.spacing_mut().item_spacing = ui.spacing().item_spacing / 2.0;
match *lock!(self.restart) { match *lock!(self.restart) {
Restart::Yes => ui Restart::Yes => ui
.add_sized( .add_sized(