Add empty workspace style for Sway
This commit is contained in:
parent
cbe42a8536
commit
cf3389e5d7
|
@ -322,6 +322,11 @@ auto Workspaces::update() -> void {
|
|||
} else {
|
||||
button.get_style_context()->remove_class("persistent");
|
||||
}
|
||||
if ((*it)["nodes"].size() == 0) {
|
||||
button.get_style_context()->add_class("empty");
|
||||
} else {
|
||||
button.get_style_context()->remove_class("empty");
|
||||
}
|
||||
if ((*it)["output"].isString()) {
|
||||
if (((*it)["output"].asString()) == bar_.output->name) {
|
||||
button.get_style_context()->add_class("current_output");
|
||||
|
|
Loading…
Reference in New Issue