fix(ux): add pointer cursor to volume sliders

This commit is contained in:
tux
2025-09-26 03:51:59 +05:30
parent be1f269fff
commit 18a245e87d

View File

@@ -1,5 +1,5 @@
import { createBinding } from "ags"; import { createBinding } from "ags";
import { Gtk } from "ags/gtk4"; import { Gdk, Gtk } from "ags/gtk4";
import AstalWp from "gi://AstalWp"; import AstalWp from "gi://AstalWp";
export const SlidingControls = () => { export const SlidingControls = () => {
@@ -23,6 +23,7 @@ export const SlidingControls = () => {
hexpand hexpand
onChangeValue={({ value }) => speaker.set_volume(value)} onChangeValue={({ value }) => speaker.set_volume(value)}
value={createBinding(speaker, "volume")} value={createBinding(speaker, "volume")}
cursor={Gdk.Cursor.new_from_name("pointer", null)}
/> />
</box> </box>
@@ -32,6 +33,7 @@ export const SlidingControls = () => {
hexpand hexpand
onChangeValue={({ value }) => microphone.set_volume(value)} onChangeValue={({ value }) => microphone.set_volume(value)}
value={createBinding(microphone, "volume")} value={createBinding(microphone, "volume")}
cursor={Gdk.Cursor.new_from_name("pointer", null)}
/> />
</box> </box>
</box> </box>