From ef1cf5d99e4e27ad40eb32e1c489812e30a3cdb4 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Tue, 3 Jul 2018 20:51:31 -0400 Subject: [PATCH] cs_power.py: Use symbolic icons for battery status. --- .../cinnamon/cinnamon-settings/modules/cs_power.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py index f56018422c..66686c2df7 100755 --- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py +++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py @@ -490,7 +490,7 @@ def create_battery_row(self, device_id, icon_name, desc, percentage, battery_lev hbox.pack_start(level_box, True, True, 0) else: status_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL) - status_icon = Gtk.Image.new_from_icon_name(self.bat_level_to_icon(battery_level), Gtk.IconSize.DND) + status_icon = Gtk.Image.new_from_icon_name(self.bat_level_to_icon(battery_level), Gtk.IconSize.BUTTON) status_box.pack_start(status_icon, False, False, 15) status_label = Gtk.Label(self.bat_level_to_label(battery_level)) @@ -511,13 +511,13 @@ def create_battery_row(self, device_id, icon_name, desc, percentage, battery_lev def bat_level_to_icon(self, level): if level in (UPowerGlib.DeviceLevel.FULL, UPowerGlib.DeviceLevel.HIGH): - return "battery-full" + return "battery-full-symbolic" elif level == UPowerGlib.DeviceLevel.NORMAL: - return "battery-good" + return "battery-good-symbolic" elif level == UPowerGlib.DeviceLevel.LOW: - return "battery-low" + return "battery-low-symbolic" elif level == UPowerGlib.DeviceLevel.CRITICAL: - return "battery-caution" + return "battery-caution-symbolic" def bat_level_to_label(self, level): if level == UPowerGlib.DeviceLevel.FULL: