1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 23:01:04 +02:00

feat: add .urgent workspace css class

This commit is contained in:
Rodrigo Batista de Moraes 2024-09-25 22:38:14 -03:00
parent 32e6fc5dc2
commit afe534ccd9
6 changed files with 80 additions and 9 deletions

View file

@ -413,6 +413,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")
};
});