0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 18:02:42 +00:00

Load editorThemes in SnippetBar.jsx

This commit is contained in:
G.Ambatte
2023-09-07 17:33:36 +12:00
parent e16110da6a
commit e909bc8f35
3 changed files with 8 additions and 9 deletions

View File

@@ -15,6 +15,9 @@ ThemeSnippets['V3_5eDMG'] = require('themes/V3/5eDMG/snippets.js');
ThemeSnippets['V3_Journal'] = require('themes/V3/Journal/snippets.js');
ThemeSnippets['V3_Blank'] = require('themes/V3/Blank/snippets.js');
// const EditorThemes = require('../themes/codeMirror/editorThemes.json');
const EditorThemes = require('build/homebrew/codeMirror/editorThemes.json');
const execute = function(val, props){
if(_.isFunction(val)) return val(props);
return val;
@@ -115,7 +118,7 @@ const Snippetbar = createClass({
renderThemeSelector : function(){
return <div className='themeSelector'>
<select value={this.props.currentEditorTheme} onChange={this.changeTheme} onMouseDown={(this.changeTheme)}>
{global.config.codeMirrorThemes.map((theme, key)=>{
{EditorThemes.map((theme, key)=>{
return <option key={key} value={theme}>{theme}</option>;
})}
</select>
@@ -229,5 +232,4 @@ const SnippetGroup = createClass({
</div>
</div>;
},
});