From 3affcbfa85e7146de753ecf00c2a48003bebc206 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Fri, 7 Aug 2026 16:30:31 +0800 Subject: [PATCH] fix(ui): improve desktop hover and cursor feedback --- .../src/components/layout/AppTabBar.vue | 22 ++++++++++++++----- .../src/components/layout/SqlFilePanel.vue | 4 ++-- .../src/components/layout/SqlLibraryPanel.vue | 10 ++++----- .../src/components/objects/ObjectBrowser.vue | 4 ++-- .../src/components/sidebar/TreeItem.vue | 6 ++--- apps/desktop/src/styles/globals.css | 4 +++- 6 files changed, 31 insertions(+), 19 deletions(-) diff --git a/apps/desktop/src/components/layout/AppTabBar.vue b/apps/desktop/src/components/layout/AppTabBar.vue index d89d857d3..3656a61b3 100644 --- a/apps/desktop/src/components/layout/AppTabBar.vue +++ b/apps/desktop/src/components/layout/AppTabBar.vue @@ -478,13 +478,15 @@ function tabColorStyle(tab: QueryTab) { if (isClassic) { return { - backgroundColor: hexToRgba(color, isActive ? 0.16 : 0.07), + "--app-tab-background": hexToRgba(color, isActive ? 0.16 : 0.07), + "--app-tab-hover-background": hexToRgba(color, 0.14), boxShadow: isActive ? `inset 0 -2px 0 ${color}` : undefined, }; } return { - backgroundColor: hexToRgba(color, isActive ? 0.16 : 0.09), + "--app-tab-background": hexToRgba(color, isActive ? 0.16 : 0.09), + "--app-tab-hover-background": hexToRgba(color, 0.16), borderColor: isActive ? hexToRgba(color, 0.72) : hexToRgba(color, 0.18), }; } @@ -644,7 +646,7 @@ function onOverflowItemKeydown(event: KeyboardEvent, tabId: string, kind: "regul