unbind marking color and dot

This commit is contained in:
piotr
2024-07-16 02:30:59 +02:00
parent a702829190
commit fa20711bbe
2 changed files with 5 additions and 3 deletions

View File

@@ -351,7 +351,6 @@ def instantiate_content(panel, container, content_list, icons_path=""):
activewindow, activeworkspace, icons_path=icons_path)
container.pack_start(workspaces, False, False, panel["items-padding"])
common.h_workspaces_list.append(workspaces)
print("Successfully instantiated hyprland-workspaces")
else:
print("'hyprland-workspaces' not defined in this panel instance")
else:

View File

@@ -79,8 +79,8 @@ class HyprlandWorkspaces(Gtk.Box):
name = "{} {}".format(num, self.ws_id2name[num])
lbl = Gtk.Label.new("{}".format(name)) if not add_dot else Gtk.Label.new("{}.".format(name))
if add_dot:
lbl.set_property("name", "workspace-occupied")
# if add_dot:
# lbl.set_property("name", "workspace-occupied")
lbl.set_use_markup(True)
if self.settings["angle"] != 0.0:
lbl.set_angle(self.settings["angle"])
@@ -124,8 +124,11 @@ class HyprlandWorkspaces(Gtk.Box):
for num in self.ws_nums:
if num in occupied_workspaces or self.settings["show-empty"]:
occ = num in occupied_workspaces
dot = num in occupied_workspaces and self.settings["show-empty"] and self.settings["mark-content"]
eb, lbl = self.build_number(num, add_dot=dot, active_win_ws=active_ws)
if occ:
lbl.set_property("name", "workspace-occupied")
self.num_box.pack_start(eb, False, False, 0)
self.num_box.show_all()