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

Add base of white theme

This commit is contained in:
Kazu Yokomizo
2017-11-11 19:05:08 +09:00
parent 95787fafc6
commit 4a6c16df8d
4 changed files with 8 additions and 1 deletions

View File

@@ -84,6 +84,8 @@ nodeIpc.connectTo(
const { config } = payload
if (config.ui.theme === 'dark') {
document.body.setAttribute('data-theme', 'dark')
} else if (config.ui.theme === 'white') {
document.body.setAttribute('data-theme', 'white')
} else {
document.body.setAttribute('data-theme', 'default')
}