mirror of
https://github.com/BoostIo/Boostnote
synced 2026-05-25 17:02:00 +00:00
dark theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user