From 345f5e14deae972e6b87da8d2201baf1ac2decb9 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Wed, 13 Jan 2010 01:53:23 -0800 Subject: [PATCH] Refactor hardcoded Aristo.blend into CPApplication +defaultThemeName --- AppKit/CPApplication.j | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 10891a2b9..ebf94d46c 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -958,6 +958,12 @@ CPRunContinuesResponse = -1002; [self._activeMenu cancelTracking]; } ++ (CPString)defaultThemeName +{ + // FIXME: don't hardcode + return @"Aristo.blend"; +} + @end var _CPModalSessionMake = function(aWindow, aStopCode) @@ -1062,7 +1068,7 @@ var _CPAppBootstrapperActions = nil; + (BOOL)loadDefaultTheme { - var blend = [[CPThemeBlend alloc] initWithContentsOfURL:[[CPBundle bundleForClass:[CPApplication class]] pathForResource:@"Aristo.blend"]]; + var blend = [[CPThemeBlend alloc] initWithContentsOfURL:[[CPBundle bundleForClass:[CPApplication class]] pathForResource:[CPApplication defaultThemeName]]]; [blend loadWithDelegate:self];