From 5b248fadefbd82078984b251727bddd311ad75d9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 29 Mar 2025 10:52:44 +0100 Subject: [PATCH] music widget: change cursor shape on button hover --- .config/ags/modules/indicators/musiccontrols.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/ags/modules/indicators/musiccontrols.js b/.config/ags/modules/indicators/musiccontrols.js index deb030ca3..6f07c7f50 100644 --- a/.config/ags/modules/indicators/musiccontrols.js +++ b/.config/ags/modules/indicators/musiccontrols.js @@ -10,6 +10,7 @@ import { fileExists } from '../.miscutils/files.js'; import { AnimatedCircProg } from "../.commonwidgets/cairo_circularprogress.js"; import { showMusicControls } from '../../variables.js'; import { darkMode, hasPlasmaIntegration } from '../.miscutils/system.js'; +import { setupCursorHover } from '../.widgetutils/cursorhover.js'; const COMPILED_STYLE_DIR = `${GLib.get_user_cache_dir()}/ags/user/generated` const LIGHTDARK_FILE_LOCATION = `${GLib.get_user_state_dir()}/ags/user/colormode.txt`; @@ -253,7 +254,8 @@ const TrackControls = ({ player, ...rest }) => Widget.Revealer({ child: Label({ className: 'icon-material osd-music-controlbtn-txt', label: 'skip_previous', - }) + }), + setup: setupCursorHover }), Button({ className: 'osd-music-controlbtn', @@ -261,7 +263,8 @@ const TrackControls = ({ player, ...rest }) => Widget.Revealer({ child: Label({ className: 'icon-material osd-music-controlbtn-txt', label: 'skip_next', - }) + }), + setup: setupCursorHover }), ], }), @@ -355,10 +358,11 @@ const PlayState = ({ player }) => { label.label = `${player.playBackStatus == 'Playing' ? 'pause' : 'play_arrow'}`; }, 'notify::play-back-status'), }), + setup: setupCursorHover }), ], passThrough: true, - }) + }), }); }