mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Toggle opacity
This commit is contained in:
parent
502b33b64a
commit
eb4c76f5e4
@ -295,8 +295,10 @@ auto waybar::Bar::toggle() -> void {
|
|||||||
visible = !visible;
|
visible = !visible;
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
window.get_style_context()->add_class("hidden");
|
window.get_style_context()->add_class("hidden");
|
||||||
|
window.set_opacity(0);
|
||||||
} else {
|
} else {
|
||||||
window.get_style_context()->remove_class("hidden");
|
window.get_style_context()->remove_class("hidden");
|
||||||
|
window.set_opacity(1);
|
||||||
}
|
}
|
||||||
setExclusiveZone(width_, height_);
|
setExclusiveZone(width_, height_);
|
||||||
wl_surface_commit(surface);
|
wl_surface_commit(surface);
|
||||||
|
Loading…
Reference in New Issue
Block a user