Make it possible to have css styling for urgent taskbar

Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com>
This commit is contained in:
Jo De Boeck
2023-12-09 19:08:10 +02:00
parent 7a24f0389e
commit 747b7dc907
2 changed files with 4 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ the horizontal, in degrees, measured counterclockwise</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;CSS IDs&lt;/b&gt;:
#task-box, #task-box-focused, #task-box-icon &lt;/span&gt;</property>
#task-box, #task-box-focused, #task-box-urgent, #task-box-icon &lt;/span&gt;</property>
<property name="use-markup">True</property>
<property name="wrap">True</property>
</object>

View File

@@ -138,7 +138,9 @@ class WindowBox(Gtk.EventBox):
self.old_name = ""
if con.focused:
if con.urgent:
self.box.set_property("name", "task-box-urgent")
elif con.focused:
self.box.set_property("name", "task-box-focused")
else:
self.box.set_property("name", "task-box")