1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

solarized light/dark bug fix

fixup for 0bf7e8b705
ConfigManager is also needed to change.
This commit is contained in:
yosmoc
2017-11-06 23:32:45 +01:00
parent 95787fafc6
commit 2459a80e15

View File

@@ -91,7 +91,7 @@ function get () {
: 'default'
if (config.editor.theme !== 'default') {
editorTheme.setAttribute('href', '../node_modules/codemirror/theme/' + config.editor.theme + '.css')
editorTheme.setAttribute('href', '../node_modules/codemirror/theme/' + config.editor.theme.split(' ')[0] + '.css')
}
}
@@ -122,7 +122,7 @@ function set (updates) {
: 'default'
if (newTheme !== 'default') {
editorTheme.setAttribute('href', '../node_modules/codemirror/theme/' + newTheme + '.css')
editorTheme.setAttribute('href', '../node_modules/codemirror/theme/' + newTheme.split(' ')[0] + '.css')
}
ipcRenderer.send('config-renew', {