volume: add 'expanded' CSS class when per-app list is revealed

parent ec63294c
......@@ -164,7 +164,15 @@ namespace XimperShellNotificationCenter.Widgets {
reveal_button.toggled.connect (() => {
set_button_icon ();
revealer.set_reveal_child (reveal_button.active);
if (reveal_button.active) {
add_css_class ("expanded");
} else {
remove_css_class ("expanded");
}
});
if (expand_per_app) {
add_css_class ("expanded");
}
main_volume_slider_container.append (reveal_button);
append (revealer);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment