make volume bar gray if muted

This commit is contained in:
Erica Z 2024-11-23 15:24:33 +01:00
parent b1eb01effc
commit 6975148163
2 changed files with 10 additions and 0 deletions

View file

@ -44,6 +44,10 @@ toolbarview#main {
min-height: 15px;
}
.mute #volume-scale trough highlight {
background-color: oklch(from var(--accent-bg-color) l 0% h);
}
#play-queue listview {
background-color: rgba(0,0,0,0);
}

View file

@ -477,6 +477,12 @@ mod imp {
fn set_mute(&self, mute: bool) {
self.mpv.set_property("mute", mute).unwrap();
if mute {
self.obj().add_css_class("mute");
} else {
self.obj().remove_css_class("mute");
}
}
fn pause(&self) -> bool {