aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/controllers/code-editor-controller.js1
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js6
2 files changed, 7 insertions, 0 deletions
diff --git a/js/controllers/code-editor-controller.js b/js/controllers/code-editor-controller.js
index 5dee4ab2..08320db7 100644
--- a/js/controllers/code-editor-controller.js
+++ b/js/controllers/code-editor-controller.js
@@ -218,6 +218,7 @@ var CodeEditorController = exports.CodeEditorController = Montage.create(Compone
218 handleThemeSelection:{ 218 handleThemeSelection:{
219 value: function(){ 219 value: function(){
220 this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme); 220 this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme);
221 this.application.ninja.stage.stageView.applyTheme("cm-s-"+this.editorTheme);
221 } 222 }
222 }, 223 },
223 224
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index 53eff90e..53c6125b 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -201,5 +201,11 @@ exports.StageView = Montage.create(Component, {
201 this.application.ninja.toolsSplitter.restore(); 201 this.application.ninja.toolsSplitter.restore();
202 this.application.ninja.optionsSplitter.restore(); 202 this.application.ninja.optionsSplitter.restore();
203 } 203 }
204 },
205
206 applyTheme:{
207 value:function(themeClass){
208 this.element.className = "codeViewContainer "+themeClass;
209 }
204 } 210 }
205}); \ No newline at end of file 211}); \ No newline at end of file