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:
@@ -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"><span size="small"><b>CSS IDs</b>:
|
||||
#task-box, #task-box-focused, #task-box-icon </span></property>
|
||||
#task-box, #task-box-focused, #task-box-urgent, #task-box-icon </span></property>
|
||||
<property name="use-markup">True</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user