aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/sources/scripts/lib
diff options
context:
space:
mode:
authorneauoire <[email protected]>2019-11-05 21:41:40 -0500
committerneauoire <[email protected]>2019-11-05 21:41:40 -0500
commit8d334e8c8c448c886d7ccc5f5636f7fdba95f77f (patch)
treef987dcef1adce373f612b4ea9731170394a286f6 /desktop/sources/scripts/lib
parentadeb472132cb0851eb430fa17c6105ec1bdbbfe3 (diff)
downloadOrca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.tar.gz
Orca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.zip
*
Diffstat (limited to 'desktop/sources/scripts/lib')
-rw-r--r--desktop/sources/scripts/lib/theme.js4
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)) {