From 6984ff83a903cb0903a9de46c4ec9a0a325d23f6 Mon Sep 17 00:00:00 2001 From: xiaoxuan010 <2592053474@qq.com> Date: Fri, 15 Nov 2024 14:24:50 +0800 Subject: [PATCH] Improve play bar icons hover effects --- public/content.css | 5 +++++ src/render/PlayerButton.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/content.css b/public/content.css index f58ca305..0fb8884d 100644 --- a/public/content.css +++ b/public/content.css @@ -59,6 +59,11 @@ .playerButtonImage { height: 22px; vertical-align: top; + opacity: 0.9; +} + +.playerButtonImage:hover { + opacity: 1; } .playerButton { diff --git a/src/render/PlayerButton.tsx b/src/render/PlayerButton.tsx index dc28b42e..bf75d1f1 100644 --- a/src/render/PlayerButton.tsx +++ b/src/render/PlayerButton.tsx @@ -93,7 +93,7 @@ export class PlayerButton { }, }; if (Config.config.autoHideInfoButton) { - AnimationUtils.setupAutoHideAnimation(this.playerButtons.info.button, controlsContainer); + AnimationUtils.setupAutoHideAnimation(this.playerButtons.info.button, this.container); } this.creatingButtons = false; }