1
0
Fork 0
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:
Jake Stanger 2024-11-24 21:40:52 +00:00 committed by GitHub
commit 9c13e534b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 80 additions and 9 deletions

View file

@ -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")
};
});