mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 04:41:55 +05:30
fix(ux): add pointer cursor to volume sliders
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createBinding } from "ags";
|
||||
import { Gtk } from "ags/gtk4";
|
||||
import { Gdk, Gtk } from "ags/gtk4";
|
||||
import AstalWp from "gi://AstalWp";
|
||||
|
||||
export const SlidingControls = () => {
|
||||
@@ -23,6 +23,7 @@ export const SlidingControls = () => {
|
||||
hexpand
|
||||
onChangeValue={({ value }) => speaker.set_volume(value)}
|
||||
value={createBinding(speaker, "volume")}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
/>
|
||||
</box>
|
||||
|
||||
@@ -32,6 +33,7 @@ export const SlidingControls = () => {
|
||||
hexpand
|
||||
onChangeValue={({ value }) => microphone.set_volume(value)}
|
||||
value={createBinding(microphone, "volume")}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
/>
|
||||
</box>
|
||||
</box>
|
||||
|
Reference in New Issue
Block a user