\r
// Entry point to start the kiwi application\r
init: function (opts, callback) {\r
- var continueStart, locale;\r
+ var continueStart, locale, igniteTextTheme, text_theme;\r
opts = opts || {};\r
\r
continueInit = function (locale, s, xhr) {\r
} else {\r
_kiwi.global.i18n = new Jed();\r
}\r
-\r
+ \r
_kiwi.app = new _kiwi.model.Application(opts);\r
\r
// Start the client up\r
\r
callback && callback();\r
};\r
+ \r
+ igniteTextTheme = function(text_theme, s, xhr) {\r
+ _kiwi.global.text_theme = new _kiwi.view.TextTheme(text_theme);\r
+ \r
+ callback && callback();\r
+ }\r
\r
// Set up the settings datastore\r
_kiwi.global.settings = _kiwi.model.DataStore.instance('kiwi.settings');\r
} else {\r
$.getJSON(opts.base_path + '/assets/locales/' + locale + '.json', continueInit);\r
}\r
+\r
+ text_theme = opts.text_theme;\r
+ if (!text_theme) {\r
+ $.getJSON(opts.base_path + '/assets/text_themes/default.json', igniteTextTheme);\r
+ } else {\r
+ $.getJSON(opts.base_path + '/assets/text_themes/' + text_theme + '.json', igniteTextTheme);\r
+ }\r
},\r
\r
start: function() {\r