ags: style

This commit is contained in:
2026-08-19 21:41:32 +03:00
committed by Sweetbread
parent 61677eed09
commit ff0d402a7c
9 changed files with 90 additions and 96 deletions
@@ -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>
}