diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js
index 10a0f72d9..058b99a28 100644
--- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js
+++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js
@@ -52,7 +52,8 @@ define([
inProgress,
infoObj,
modalView,
- _licInfo;
+ _licInfo,
+ templateInsert;
return {
models: [],
@@ -78,6 +79,7 @@ define([
setApi: function (api) {
var me = this;
me.api = api;
+ me.api.asc_registerCallback('asc_onSendThemeColorSchemes', _.bind(me.onSendThemeColorSchemes, me));
},
onLaunch: function () {
@@ -160,6 +162,33 @@ define([
me.setLicInfo(_licInfo);
} else if ('#settings-application-view' == pageId) {
me.initPageApplicationSettings();
+ } else if ('#color-schemes-view' == pageId) {
+ me.initPageColorSchemes();
+ }
+ },
+
+ initPageColorSchemes: function() {
+ $('#color-schemes-content').html(templateInsert);
+ $('.color-schemes-menu').on('click', _.bind(this.onColorSchemaClick, this));
+ },
+
+ onSendThemeColorSchemes: function (schemas) {
+ templateInsert = "";
+ _.each(schemas, function (schema, index) {
+ var colors = schema.get_colors();//schema.colors;
+ templateInsert = templateInsert + "