From e2741ba604106c753d4529f6a4d8958c93e5bc4e Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Wed, 8 Sep 2010 16:13:26 +0200 Subject: [PATCH] made press work with custom themes --- CommonJS/bin/press | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CommonJS/bin/press b/CommonJS/bin/press index b36277bc3..10b6dadf1 100755 --- a/CommonJS/bin/press +++ b/CommonJS/bin/press @@ -130,7 +130,12 @@ function press(rootPath, outputPath, options) { // read in the default theme name, and attempt to get its size var themeName = outputInfoPlist.valueForKey("CPDefaultTheme") || "Aristo", + themePath = nil; + + if (themeName === "Aristo") themePath = FILE.join(outputPath, options.frameworks, "AppKit", "Resources", themeName+".blend"); + else + themePath = FILE.join(outputPath, "Resources", themeName + ".blend"); if (FILE.exists(themePath)) {