fix: battery icon

This commit is contained in:
Ashley Wulber 2026-03-16 14:02:28 -04:00 • committed by Jacob Kauffmann
parent 9dda03ca3d
commit 0272e189f4
6 changed files with 108 additions and 35 deletions

View file

@ -348,10 +348,13 @@ impl App {
}
if let Some((power_icon, power_percent)) = &self.common.power_info_opt {
status_row = status_row.push(iced::widget::row![
power_icon.clone(),
widget::text(format!("{:.0}%", power_percent)),
]);
status_row = status_row.push(
iced::widget::row![
power_icon.clone(),
widget::text(format!("{:.0}%", power_percent)),
]
.align_y(Alignment::Center),
);
}
//TODO: move code for custom dropdowns to libcosmic