support new themes

This commit is contained in:
rolux 2013-02-10 17:15:37 +05:30
parent c8e4349753
commit 74753ebb60

View file

@ -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
})