Merge pull request #4689 from ospafford/feat-dwl_tag_state
feat(dwl/tags): add empty tag option
This commit is contained in:
commit
3d0b942956
|
|
@ -43,6 +43,7 @@ Addressed by *dwl/tags*
|
|||
|
||||
- *#tags button*
|
||||
- *#tags button.occupied*
|
||||
- *#tags button.empty*
|
||||
- *#tags button.focused*
|
||||
- *#tags button.urgent*
|
||||
|
||||
|
|
|
|||
|
|
@ -187,6 +187,12 @@ void Tags::handle_view_tags(uint32_t tag, uint32_t state, uint32_t clients, uint
|
|||
button.get_style_context()->remove_class("occupied");
|
||||
}
|
||||
|
||||
if (clients & TAG_INACTIVE) {
|
||||
button.get_style_context()->remove_class("empty");
|
||||
} else {
|
||||
button.get_style_context()->add_class("empty");
|
||||
}
|
||||
|
||||
if (state & TAG_ACTIVE) {
|
||||
button.get_style_context()->add_class("focused");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue