diff --git a/browser/lib/consts.js b/browser/lib/consts.js index 253bc974..c6b2ea5b 100644 --- a/browser/lib/consts.js +++ b/browser/lib/consts.js @@ -10,6 +10,7 @@ const themes = fs.readdirSync(themePath) .map((themePath) => { return themePath.substring(0, themePath.lastIndexOf('.')) }) +themes.splice(themes.indexOf('solarized'), 1, 'solarized dark', 'solarized light') const consts = { FOLDER_COLORS: [ diff --git a/browser/main/modals/PreferencesModal/UiTab.js b/browser/main/modals/PreferencesModal/UiTab.js index 217306f6..d1f252e3 100644 --- a/browser/main/modals/PreferencesModal/UiTab.js +++ b/browser/main/modals/PreferencesModal/UiTab.js @@ -61,7 +61,7 @@ class UiTab extends React.Component { const newCodemirrorTheme = this.refs.editorTheme.value if (newCodemirrorTheme !== codemirrorTheme) { - checkHighLight.setAttribute('href', `../node_modules/codemirror/theme/${newCodemirrorTheme}.css`) + checkHighLight.setAttribute('href', `../node_modules/codemirror/theme/${newCodemirrorTheme.split(" ")[0]}.css`) } this.setState({ config: newConfig, codemirrorTheme: newCodemirrorTheme })