From dccdfb5635c30f5b64068f4eee886c1d3cc8e67e Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 14 Feb 2026 10:19:47 +0100 Subject: [PATCH] fixed: popup HUD --- AppKit/Themes/Aristo3/ThemeDescriptors.j | 43 ++++++++++++++++++++---- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/AppKit/Themes/Aristo3/ThemeDescriptors.j b/AppKit/Themes/Aristo3/ThemeDescriptors.j index 1e34c5489..7d34631b5 100644 --- a/AppKit/Themes/Aristo3/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo3/ThemeDescriptors.j @@ -9162,18 +9162,34 @@ var themedButtonValues = nil, { var bordelessBridgeWindowView = [[_CPBorderlessBridgeWindowView alloc] initWithFrame:CGRectMake(0,0,0,0)], + // Standard Theme Toolbar toolbarBackgroundColor = [CPColor colorWithCSSDictionary:@{ - @"background-color": A3ColorBackground + @"background-color": A3ColorBackground, + @"border-bottom": @"1px solid " + A3ColorBorderLight }], + + // HUD Theme Window Background (Dark/Translucent) hudBezelColor = [CPColor colorWithCSSDictionary:@{ @"background-color": @"rgba(0, 0, 0, 0.85)", - @"border-radius": @"5px" + @"border-radius": @"5px", + @"box-shadow": @"0 5px 15px rgba(0,0,0,0.5)" + }], + + // HUD Theme Toolbar Background + // Adds a subtle lighter overlay and a distinct separator line for the toolbar area + hudToolbarBackgroundColor = [CPColor colorWithCSSDictionary:@{ + @"background-color": @"rgba(255, 255, 255, 0.05)", + @"border-bottom": @"1px solid rgba(255, 255, 255, 0.15)" }], themeValues = [ + // Standard [@"toolbar-background-color", toolbarBackgroundColor], - [@"bezel-color", hudBezelColor, CPThemeStateHUD] + + // HUD Overrides + [@"bezel-color", hudBezelColor, CPThemeStateHUD], + [@"toolbar-background-color", hudToolbarBackgroundColor, CPThemeStateHUD] ]; [self registerThemeValues:themeValues forView:bordelessBridgeWindowView inherit:themedWindowViewValues]; @@ -9374,13 +9390,26 @@ var themedButtonValues = nil, [@"right-columns-margin", 30.0], - // HUD Overrides - // Use a semi-transparent white for selection instead of Blue + // ======================================================= + // HUD OVERRIDES (Fixes applied here) + // ======================================================= + + // Set margins to 0 for HUD state to let the blue bar touch the edges. + [@"left-margin", 0.0, CPThemeStateHUD], + [@"right-margin", 0.0, CPThemeStateHUD], + + // Explicitly force [CPColor whiteColor] for HUD text. + // Do not rely on A3CPColorActiveTextHighlighted unless you are sure it is white. + [@"menu-item-text-color", [CPColor whiteColor], CPThemeStateHUD], + + // Ensure disabled text is visible but dimmed in HUD + [@"menu-item-disabled-text-color", [CPColor colorWithWhite:1.0 alpha:0.4], CPThemeStateHUD], + + // Existing HUD settings (Keep these) [@"menu-item-selection-color", [CPColor colorWithWhite:1.0 alpha:0.3], CPThemeStateHUD], - [@"menu-item-text-color", A3CPColorActiveTextHighlighted, CPThemeStateHUD], [@"menu-item-default-on-state-image", menuItemHUDOnStateImage, CPThemeStateHUD], [@"menu-item-default-mixed-state-image", menuItemHUDMixedStateImage, CPThemeStateHUD], - [@"submenu-indicator-color", A3CPColorActiveTextHighlighted, CPThemeStateHUD], + [@"submenu-indicator-color", [CPColor whiteColor], CPThemeStateHUD], ]; [self registerThemeValues:themeValues forView:menuItemStandardView];