mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
fix(ux): add pointer cursor to volume sliders
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user