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 | |
parent | adeb472132cb0851eb430fa17c6105ec1bdbbfe3 (diff) | |
download | Orca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.tar.gz Orca-8d334e8c8c448c886d7ccc5f5636f7fdba95f77f.zip |
*
Diffstat (limited to 'desktop/sources/scripts')
-rw-r--r-- | desktop/sources/scripts/lib/theme.js | 4 | ||||
-rw-r--r-- | desktop/sources/scripts/terminal.js | 3 |
2 files changed, 3 insertions, 4 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)) { diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js index 3bb46ec..8bf79e3 100644 --- a/desktop/sources/scripts/terminal.js +++ b/desktop/sources/scripts/terminal.js @@ -17,7 +17,6 @@ function Terminal () { // Themes this.theme = new Theme() - this.theme.default = { background: '#000000', f_high: '#ffffff', f_med: '#777777', f_low: '#444444', f_inv: '#000000', b_high: '#eeeeee', b_med: '#72dec2', b_low: '#444444', b_inv: '#ffb545' } this.el = document.createElement('canvas') this.context = this.el.getContext('2d') @@ -120,7 +119,7 @@ function Terminal () { this.start = () => { console.info('Terminal', 'Starting..') console.info(`${this.acels}`) - this.theme.start() + this.theme.start({ background: '#000000', f_high: '#ffffff', f_med: '#777777', f_low: '#444444', f_inv: '#000000', b_high: '#eeeeee', b_med: '#72dec2', b_low: '#444444', b_inv: '#ffb545' }) this.io.start() this.source.start() this.history.bind(this.orca, 's') |