1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Add code theme selector

This commit is contained in:
dojineko
2016-04-17 21:00:34 +09:00
parent 43fb37ab1d
commit 777f7f9305
13 changed files with 110 additions and 16 deletions

View File

@@ -25,6 +25,9 @@ ipcRenderer.on('config-apply', function (e, newConfig) {
function applyConfig(){
let body = document.body
body.setAttribute('data-theme', config['theme-ui'])
let hljsCss = document.getElementById('hljs-css')
hljsCss.setAttribute('href', '../node_modules/highlight.js/styles/' + config['theme-code'] + '.css')
}
if (process.env.NODE_ENV !== 'production') {