make volume bar gray if muted
This commit is contained in:
parent
b1eb01effc
commit
6975148163
2 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,10 @@ toolbarview#main {
|
||||||
min-height: 15px;
|
min-height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mute #volume-scale trough highlight {
|
||||||
|
background-color: oklch(from var(--accent-bg-color) l 0% h);
|
||||||
|
}
|
||||||
|
|
||||||
#play-queue listview {
|
#play-queue listview {
|
||||||
background-color: rgba(0,0,0,0);
|
background-color: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -477,6 +477,12 @@ mod imp {
|
||||||
|
|
||||||
fn set_mute(&self, mute: bool) {
|
fn set_mute(&self, mute: bool) {
|
||||||
self.mpv.set_property("mute", mute).unwrap();
|
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 {
|
fn pause(&self) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue