mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 23:01:04 +02:00
Merge pull request #735 from Rodrigodd/feat/urgent
feat: add `.urgent` workspace css class
This commit is contained in:
commit
9c13e534b7
6 changed files with 80 additions and 9 deletions
|
@ -416,6 +416,16 @@ impl Module<gtk::Box> for WorkspacesModule {
|
|||
}
|
||||
}
|
||||
}
|
||||
WorkspaceUpdate::Urgent { id, urgent } => {
|
||||
let button = button_map.get(&id);
|
||||
if let Some(item) = button {
|
||||
if urgent {
|
||||
item.add_class("urgent");
|
||||
} else {
|
||||
item.style_context().remove_class("urgent");
|
||||
}
|
||||
}
|
||||
}
|
||||
WorkspaceUpdate::Unknown => warn!("Received unknown type workspace event")
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue