From 74753ebb6083fd06395bd561a0ab30c47faeb797 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 10 Feb 2013 17:15:37 +0530 Subject: [PATCH] support new themes --- source/Ox.UI/Ox.UI.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index a6c20880..be023871 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -5,7 +5,7 @@ Ox.load.UI = function(options, callback) { options = Ox.extend({ hideScreen: true, showScreen: false, - theme: 'classic' + theme: 'oxlight' }, options); var browsers = [ @@ -66,7 +66,7 @@ Ox.load.UI = function(options, callback) { Ox.documentReady(function() { Ox.$('body').addClass( - 'OxTheme' + Ox.toTitleCase(options.theme || 'classic') + 'OxTheme' + Ox.toTitleCase(options.theme || 'oxlight') ); options.showScreen && showScreen(); }); @@ -96,8 +96,10 @@ Ox.load.UI = function(options, callback) { bottom: 0, padding: '4px', background: 'rgb(' + ( - options.theme == 'classic' ? '240, 240, 240' : '16, 16, 16') - + ')', + options.theme == 'oxlight' ? '240, 240, 240' + : options.theme == 'oxmedium' ? '144, 144, 144' + : '16, 16, 16' + ) + ')', opacity: 1, zIndex: 1000 })