From 91db2f409ea91273708dd60ca8532adcb93e8efe Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 18 Jan 2026 13:47:08 +0100 Subject: [PATCH] popup fix --- AppKit/Themes/Aristo3/ThemeDescriptors.j | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/AppKit/Themes/Aristo3/ThemeDescriptors.j b/AppKit/Themes/Aristo3/ThemeDescriptors.j index 3e729893e..98a2ac6a8 100644 --- a/AppKit/Themes/Aristo3/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo3/ThemeDescriptors.j @@ -1367,6 +1367,16 @@ var themedButtonValues = nil, @"box-sizing": @"border-box" } beforeDictionary:nil afterDictionary:hudArrowCSS(@"#ffffff")], + // NEW: Disabled HUD state with gray background and dimmed arrow + hudDisabledButtonCssColor = [CPColor colorWithCSSDictionary:@{ + @"background-color": @"rgba(0, 0, 0, 0.1)", + @"border-color": @"rgba(255, 255, 255, 0.1)", + @"border-style": @"solid", + @"border-width": @"1px", + @"border-radius": @"3px", + @"box-sizing": @"border-box" + } beforeDictionary:nil afterDictionary:hudArrowCSS(@"rgba(255,255,255,0.3)")], + // ========================================================== // REGISTRATION @@ -1431,11 +1441,15 @@ var themedButtonValues = nil, [@"nib2cib-adjustment-frame", CGRectMake(0.0, -0.0, -0.0, -0.0), [CPButtonStateBezelStyleRegularSquare]], // --- HUD MAPPINGS --- + // 1. Text Colors [@"text-color", [CPColor whiteColor], CPThemeStateHUD], - [@"bezel-color", [CPColor colorWithWhite:1 alpha:0.5], [CPButtonStateBezelStyleRounded, CPThemeStateDisabled, CPThemeStateBordered, CPThemeStateHUD]], + [@"text-color", [CPColor colorWithWhite:1 alpha:0.4], [CPThemeStateHUD, CPThemeStateDisabled]], + // 2. Bezel Colors [@"bezel-color", hudButtonCssColor, [CPButtonStateBezelStyleRounded, CPThemeStateHUD]], - [@"bezel-color", hudButtonCssColor, [CPButtonStateBezelStyleRounded, CPThemeStateDisabled, CPThemeStateBordered, CPThemeStateHUD]], + + [@"bezel-color", hudDisabledButtonCssColor, [CPButtonStateBezelStyleRounded, CPThemeStateDisabled, CPThemeStateBordered, CPThemeStateHUD]], + [@"bezel-color", hudButtonCssColor, [CPButtonStateBezelStyleRounded, CPThemeStateHUD, CPThemeStateKeyWindow]], [@"bezel-color", hudHighlightedButtonCssColor, [CPButtonStateBezelStyleRounded, CPThemeStateHUD, CPThemeStateHighlighted]] ];