Skip to content

Commit

Permalink
controls labels -> set name property
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Dec 12, 2024
1 parent 25307ce commit 8c95439
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nwg_panel/modules/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,23 @@ def __init__(self, settings, position, alignment, width, monitor=None, icons_pat
self.bri_icon_name = "view-refresh-symbolic"
self.bri_image = Gtk.Image.new_from_icon_name(self.bri_icon_name, Gtk.IconSize.MENU)
self.bri_label = Gtk.Label() if settings["show-brightness"] else None
if self.bri_label:
self.bri_label.set_property("name", "executor-label")
self.bri_value = 0

self.vol_icon_name = "view-refresh-symbolic"
self.vol_image = Gtk.Image.new_from_icon_name(self.vol_icon_name, Gtk.IconSize.MENU)
self.vol_label = Gtk.Label() if settings["show-volume"] else None
if self.vol_label:
self.vol_label.set_property("name", "executor-label")
self.vol_value = 0
self.vol_muted = False

self.bat_icon_name = "view-refresh-symbolic"
self.bat_image = Gtk.Image.new_from_icon_name(self.bat_icon_name, Gtk.IconSize.MENU)
self.bat_label = Gtk.Label() if settings["show-battery"] else None
if self.bat_label:
self.bat_label.set_property("name", "executor-label")
self.bat_value = 0
self.bat_time = ""
self.bat_charging = False
Expand Down

0 comments on commit 8c95439

Please sign in to comment.