renamed Side to Alignment, group spacing

This commit is contained in:
Csaba
2024-11-12 12:26:09 +01:00
parent 3808fcec8f
commit cbd415f28f
11 changed files with 64 additions and 81 deletions
+1 -4
View File
@@ -1,7 +1,6 @@
use crate::config::LabelPrefix;
use crate::widget::BarWidget;
use crate::widget::RenderConfig;
use crate::WIDGET_SPACING;
use eframe::egui::text::LayoutJob;
use eframe::egui::Context;
use eframe::egui::FontId;
@@ -148,7 +147,7 @@ impl BarWidget for Battery {
TextFormat::simple(font_id, ctx.style().visuals.text_color()),
);
config.grouping.apply_on_widget(ui, |ui| {
config.grouping.apply_on_widget(true, ui, |ui| {
ui.add(
Label::new(layout_job)
.selectable(false)
@@ -156,8 +155,6 @@ impl BarWidget for Battery {
);
});
}
ui.add_space(WIDGET_SPACING);
}
}
}