mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
commit
e6d59f05cc
@ -14,7 +14,7 @@ window#waybar {
|
|||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar.hidded {
|
window#waybar.hidden {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,9 +198,9 @@ auto waybar::Bar::toggle() -> void {
|
|||||||
visible = !visible;
|
visible = !visible;
|
||||||
auto zone = visible ? height_ : 0;
|
auto zone = visible ? height_ : 0;
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
window.get_style_context()->add_class("hidded");
|
window.get_style_context()->add_class("hidden");
|
||||||
} else {
|
} else {
|
||||||
window.get_style_context()->remove_class("hidded");
|
window.get_style_context()->remove_class("hidden");
|
||||||
}
|
}
|
||||||
zwlr_layer_surface_v1_set_exclusive_zone(layer_surface, zone);
|
zwlr_layer_surface_v1_set_exclusive_zone(layer_surface, zone);
|
||||||
wl_surface_commit(surface);
|
wl_surface_commit(surface);
|
||||||
|
Loading…
Reference in New Issue
Block a user