ags: style

This commit is contained in:
Sweetbread committed 2025-01-25 19:38:13 +03:00
1 parent dfa96985d6
commit 6f2c1bed14
9 files changed
+90 -96

No files matched your search

@@ -4,12 +4,8 @@ import Wp from "gi://AstalWp"
export default function Audio() {
const speaker = Wp.get_default()?.audio.defaultSpeaker!
return <box className="AudioSlider" css="min-width: 140px">
return <box className="AudioSlider">
<icon icon={bind(speaker, "volumeIcon")} />
<slider
hexpand
onDragged={({ value }) => speaker.volume = value}
value={bind(speaker, "volume")}
/>
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
</box>
}