1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-05-25 17:02:00 +00:00

dark theme

This commit is contained in:
Dick Choi
2016-08-14 17:28:46 +09:00
parent dd0440519b
commit 8736d87b95
32 changed files with 803 additions and 17 deletions

View File

@@ -79,6 +79,11 @@ nodeIpc.connectTo(
nodeIpc.of.node.on('config-renew', function (payload) {
console.log('config', payload)
if (payload.ui.theme === 'dark') {
document.body.setAttribute('data-theme', 'dark')
} else {
document.body.setAttribute('data-theme', 'default')
}
store.default.dispatch({
type: 'SET_CONFIG',
config: payload