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