From 4a8041ced5ab2acf806f660e5e69994016a7fec1 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 27 May 2011 10:55:21 +0900 Subject: [PATCH] built-in themes were not work correctly --- modules/themeManager.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/modules/themeManager.js b/modules/themeManager.js index fdc4ed22..e06badcd 100644 --- a/modules/themeManager.js +++ b/modules/themeManager.js @@ -62,29 +62,26 @@ TreeStyleTabThemeManager.prototype = { var styles = []; switch (aStyle) { - case 'default': default: break; + case 'plain': case 'flat': - styles.push(BASE+'square/base.css'); - styles.push(BASE+'square/dropshadow.css'); - styles.push(BASE+'platform-styled.css'); - styles.push(BASE+'square/platform.css'); - break; - case 'mixed': styles.push(BASE+'square/base.css'); - styles.push(BASE+'square/mixed.css'); - styles.push(BASE+'square/tab-surface.css'); - styles.push(BASE+'square/dropshadow.css'); + if (aStyle != 'plain') { + styles.push(BASE+'square/mixed.css'); + styles.push(BASE+'square/tab-surface.css'); + } + if (aStyle != 'flat') + styles.push(BASE+'square/dropshadow.css'); styles.push(BASE+'platform-styled.css'); styles.push(BASE+'square/platform.css'); break; case 'vertigo': - styles.push(BASE+'skin/square/square.css'); - styles.push(BASE+'skin/square/vertigo.css'); + styles.push(BASE+'square/base.css'); + styles.push(BASE+'square/vertigo.css'); styles.push(BASE+'platform-styled.css'); styles.push(BASE+'square/platform.css'); break;