only load Aristo from AppKit/Resources

Other themes are loaded from the main bundle's resource directory
This commit is contained in:
Klaas Pieter Annema committed 2010-09-08 16:12:21 +02:00
1 parent 2dd1a1b54d
commit b092ed8c2c
1 file changed
+8 -1
+8 -1
View File
@@ -1113,8 +1113,15 @@ var _CPAppBootstrapperActions = nil;
+ (BOOL)loadDefaultTheme
{
var blend = [[CPThemeBlend alloc] initWithContentsOfURL:[[CPBundle bundleForClass:[CPApplication class]] pathForResource:[CPApplication defaultThemeName] + ".blend"]];
var defaultThemeName = [CPApplication defaultThemeName],
themeURL = nil;
if (defaultThemeName === @"Aristo")
themeURL = [[CPBundle bundleForClass:[CPApplication class]] pathForResource:defaultThemeName + @".blend"];
else
themeURL = [[CPBundle mainBundle] pathForResource:defaultThemeName + @".blend"];
var blend = [[CPThemeBlend alloc] initWithContentsOfURL:themeURL];
[blend loadWithDelegate:self];
return YES;