From 62379b21c164a4ba0e0941a4483769d72db530d3 Mon Sep 17 00:00:00 2001 From: luddep Date: Sun, 24 Jan 2010 10:15:15 +0100 Subject: [PATCH] Quick fix for @"Aristo" being hardcoded in CPAlert.j --- AppKit/CPAlert.j | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AppKit/CPAlert.j b/AppKit/CPAlert.j index 14bf6ccd5..97a2f1518 100644 --- a/AppKit/CPAlert.j +++ b/AppKit/CPAlert.j @@ -148,7 +148,8 @@ var CPAlertWarningImage, var button = _buttons[i]; [button setFrameSize:CGSizeMake([button frame].size.width, (styleMask == CPHUDBackgroundWindowMask) ? 20.0 : 24.0)]; - [button setTheme:[CPTheme themeNamed: _windowStyle === CPHUDBackgroundWindowMask ? "Aristo-HUD" : "Aristo"]]; + + [button setTheme:(_windowStyle === CPHUDBackgroundWindowMask) ? [CPTheme themeNamed:"Aristo-HUD"] : [CPTheme defaultTheme]]; [[_alertPanel contentView] addSubview:button]; } @@ -263,8 +264,8 @@ var CPAlertWarningImage, [button setTag:_buttonCount]; [button setAction:@selector(_notifyDelegate:)]; - [button setTheme:[CPTheme themeNamed: _windowStyle === CPHUDBackgroundWindowMask ? "Aristo-HUD" : "Aristo"]]; - [button setAutoresizingMask:CPViewMinXMargin|CPViewMinYMargin]; + [button setTheme:(_windowStyle === CPHUDBackgroundWindowMask) ? [CPTheme themeNamed:"Aristo-HUD"] : [CPTheme defaultTheme]]; + [button setAutoresizingMask:CPViewMinXMargin | CPViewMinYMargin]; [[_alertPanel contentView] addSubview:button];