diff --git a/cosmic-applet-battery/src/app.rs b/cosmic-applet-battery/src/app.rs index 05074bd9..0cb58cc0 100644 --- a/cosmic-applet-battery/src/app.rs +++ b/cosmic-applet-battery/src/app.rs @@ -430,7 +430,7 @@ impl cosmic::Application for CosmicBatteryApplet { fn view_window(&self, _id: window::Id) -> Element { let name = text(fl!("battery")).size(14); let description = text(if !self.on_battery { - format!("{}%", self.battery_percent) + format!("{:.0}%", self.battery_percent) } else { format!( "{} {} ({:.0}%)",