From e66a0656c8ffa508ab6d6b17a926f7c2dc309ac6 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 17 Feb 2026 16:09:15 +0100 Subject: [PATCH] fixed: HUD style bridgewindow --- AppKit/CPWindow/_CPBorderlessBridgeWindowView.j | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j index de208b924..a74994230 100644 --- a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j +++ b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j @@ -39,6 +39,22 @@ }; } +- (id)initWithFrame:(CGRect)aFrame styleMask:(unsigned)aStyleMask +{ + self = [super initWithFrame:aFrame styleMask:aStyleMask]; + + if (self) + { + // Check if the mask contains the HUD flag + if (aStyleMask & CPHUDBackgroundWindowMask) + { + [self setBackgroundColor:[CPColor blackColor]]; + } + } + + return self; +} + - (void)setShowsResizeIndicator:(BOOL)shouldShowResizeIndicator { // We don't ever want to show the resize indicator.