mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
hyprland/window: add css class for empty label
This commit is contained in:
parent
47193a3d2f
commit
a3912436be
@ -92,6 +92,11 @@ void Window::onEvent(const std::string& ev) {
|
|||||||
if (windowName == lastView) return;
|
if (windowName == lastView) return;
|
||||||
|
|
||||||
lastView = windowName;
|
lastView = windowName;
|
||||||
|
if (windowName[0] == '\0') {
|
||||||
|
label_.get_style_context()->add_class("empty");
|
||||||
|
} else {
|
||||||
|
label_.get_style_context()->remove_class("empty");
|
||||||
|
}
|
||||||
|
|
||||||
spdlog::debug("hyprland window onevent with {}", windowName);
|
spdlog::debug("hyprland window onevent with {}", windowName);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user