diff options
author | neauoire <[email protected]> | 2019-11-05 21:41:40 -0500 |
---|---|---|
committer | neauoire <[email protected]> | 2019-11-05 21:41:40 -0500 |
commit | 8d334e8c8c448c886d7ccc5f5636f7fdba95f77f (patch) | |
tree | f987dcef1adce373f612b4ea9731170394a286f6 /desktop/sources/scripts/lib | |
parent | adeb472132cb0851eb430fa17c6105ec1bdbbfe3 (diff) | |
download | Orca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.tar.gz Orca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.zip |
*
Diffstat (limited to 'desktop/sources/scripts/lib')
-rw-r--r-- | desktop/sources/scripts/lib/theme.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/sources/scripts/lib/theme.js b/desktop/sources/scripts/lib/theme.js index 94061ed..36a5743 100644 --- a/desktop/sources/scripts/lib/theme.js +++ b/desktop/sources/scripts/lib/theme.js @@ -7,7 +7,6 @@ function Theme () { const themer = this - this.default = { background: '#eee', f_high: '#000', f_med: '#999', f_low: '#ccc', f_inv: '#000', b_high: '#000', b_med: '#888', b_low: '#aaa', b_inv: '#ffb545' } this.active = {} this.el = document.createElement('style') @@ -18,7 +17,8 @@ function Theme () { this.callback = callback } - this.start = () => { + this.start = (theme = { background: '#eee', f_high: '#000', f_med: '#999', f_low: '#ccc', f_inv: '#000', b_high: '#000', b_med: '#888', b_low: '#aaa', b_inv: '#ffb545' }) => { + this.default = theme this.active = this.default console.log('Theme', 'Starting..') if (isJson(localStorage.theme)) { |