aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2018-10-17 21:28:34 +1200
committerDevine Lu Linvega <[email protected]>2018-10-17 21:28:34 +1200
commitd4dc8df77b51785ed1fd42162ee2089c85b4e767 (patch)
tree6780e72925532ab6afa7d7fae831cab7bb850b72
parent181c7738f1d8bd135f0378570beaf6f5c8028fcf (diff)
downloadOrca-d4dc8df77b51785ed1fd42162ee2089c85b4e767.tar.gz
Orca-d4dc8df77b51785ed1fd42162ee2089c85b4e767.zip
Fixed issue with theme :)
-rw-r--r--desktop/sources/scripts/terminal.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js
index ccabebc..fcc0205 100644
--- a/desktop/sources/scripts/terminal.js
+++ b/desktop/sources/scripts/terminal.js
@@ -7,7 +7,7 @@ function Terminal (pico) {
this.qqq = new QQQ(this)
this.cursor = new Cursor(this)
this.controller = new Controller()
- this.theme = new Theme(this.theme = new Theme({ background: '#111111', f_high: '#ffffff', f_med: '#333333', f_low: '#000000', f_inv: '#000000', b_high: '#ffb545', b_med: '#72dec2', b_low: '#444444', b_inv: '#ffffff' }))
+ this.theme = new Theme({ background: '#111111', f_high: '#ffffff', f_med: '#333333', f_low: '#000000', f_inv: '#000000', b_high: '#ffb545', b_med: '#72dec2', b_low: '#444444', b_inv: '#ffffff' })
this.pico = pico
this.el = document.createElement('canvas')
@@ -206,6 +206,11 @@ function Terminal (pico) {
ctx.fillText(styles.isCursor && g == '.' ? (!pico.isPaused ? '@' : '~') : g.toUpperCase(), (x + 0.5) * this.tile.w, (y + 1) * this.tile.h)
}
+ this.reset = function()
+ {
+ this.theme.reset()
+ }
+
this.resize = function () {
this.size = { width: this.tile.w * pico.w, height: this.tile.h * pico.h + (this.tile.h * 3), ratio: 0.75 }
this.el.width = this.size.width