diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-29 18:13:21 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-29 18:13:21 +1100 |
| commit | 977a59afb32553c0990a3964404652e9606428dc (patch) | |
| tree | d98dc8ba56cc107c73e45e492f485e53b7c108d1 /src/modules | |
| parent | monitors: fix ddc detection (diff) | |
| download | caelestia-shell-977a59afb32553c0990a3964404652e9606428dc.tar.gz caelestia-shell-977a59afb32553c0990a3964404652e9606428dc.tar.bz2 caelestia-shell-977a59afb32553c0990a3964404652e9606428dc.zip | |
sidebar: allow seeking
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/sidebar/dashboard.tsx | 2 | ||||
| -rw-r--r-- | src/modules/sidebar/modules/media.tsx | 2 | ||||
| -rw-r--r-- | src/modules/sidebar/modules/streams.tsx | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/sidebar/dashboard.tsx b/src/modules/sidebar/dashboard.tsx index c38d584..bad4695 100644 --- a/src/modules/sidebar/dashboard.tsx +++ b/src/modules/sidebar/dashboard.tsx @@ -108,7 +108,7 @@ const Media = ({ player }: { player: AstalMpris.Player | null }) => { label="" /> </box> - <Slider value={bind(position)} /> + <Slider value={bind(position)} onChange={(_, v) => player?.set_position(v * player.length)} /> <box className="time"> <label label={player ? bind(player, "position").as(lengthStr) : "-1:-1"} /> <box hexpand /> diff --git a/src/modules/sidebar/modules/media.tsx b/src/modules/sidebar/modules/media.tsx index 4af388b..4872f9e 100644 --- a/src/modules/sidebar/modules/media.tsx +++ b/src/modules/sidebar/modules/media.tsx @@ -60,7 +60,7 @@ const Player = ({ player }: { player: AstalMpris.Player }) => { {bind(player, "coverArt").as(a => (a ? <box visible={false} /> : <label xalign={0.4} label="" />))} </box> <box vertical className="progress"> - <Slider value={bind(position)} /> + <Slider value={bind(position)} onChange={(_, v) => player.set_position(v * player.length)} /> <box className="time"> <label label={bind(player, "position").as(lengthStr)} /> <box hexpand /> diff --git a/src/modules/sidebar/modules/streams.tsx b/src/modules/sidebar/modules/streams.tsx index 5eb0cf7..16812fd 100644 --- a/src/modules/sidebar/modules/streams.tsx +++ b/src/modules/sidebar/modules/streams.tsx @@ -27,7 +27,6 @@ const Stream = ({ stream, playing }: IStream) => ( showFillLevel restrictToFillLevel={false} fillLevel={2 / 3} - cursor="pointer" value={bind(stream, "volume").as(v => v * (2 / 3))} setup={self => self.connect("value-changed", () => stream.set_volume(self.value * 1.5))} /> |