Add empty workspace style for Sway

This commit is contained in:
wispl 2024-03-18 19:37:09 -04:00
parent cbe42a8536
commit cf3389e5d7
1 changed files with 5 additions and 0 deletions

View File

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