Add Soyuz theme
This commit is contained in:
parent
74cced0d4a
commit
9c2844b7c5
3 changed files with 15 additions and 0 deletions
|
|
@ -447,6 +447,17 @@ function Donsol () {
|
||||||
b_low: '#ced0ce',
|
b_low: '#ced0ce',
|
||||||
b_inv: '#ed1e92'
|
b_inv: '#ed1e92'
|
||||||
}
|
}
|
||||||
|
this.soyuzTheme = {
|
||||||
|
background: '#111111',
|
||||||
|
f_high: '#ffffff',
|
||||||
|
f_med: '#aaaaaa',
|
||||||
|
f_low: '#555555',
|
||||||
|
f_inv: '#000000',
|
||||||
|
b_high: '#fc533e',
|
||||||
|
b_med: '#666666',
|
||||||
|
b_low: '#333333',
|
||||||
|
b_inv: '#fc533e'
|
||||||
|
}
|
||||||
this.tapeTheme = {
|
this.tapeTheme = {
|
||||||
background: '#dad7cd',
|
background: '#dad7cd',
|
||||||
f_high: '#696861',
|
f_high: '#696861',
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,9 @@ function Player () {
|
||||||
if (theme_value.localeCompare('sonicPi') === 0) {
|
if (theme_value.localeCompare('sonicPi') === 0) {
|
||||||
new_theme = donsol.sonicPiTheme
|
new_theme = donsol.sonicPiTheme
|
||||||
}
|
}
|
||||||
|
if (theme_value.localeCompare('soyuz') === 0) {
|
||||||
|
new_theme = donsol.soyuzTheme
|
||||||
|
}
|
||||||
if (theme_value.localeCompare('tape') === 0) {
|
if (theme_value.localeCompare('tape') === 0) {
|
||||||
new_theme = donsol.tapeTheme
|
new_theme = donsol.tapeTheme
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ function Settings () {
|
||||||
this.theme_button.innerHTML += '<option value=\"solarizedDark\">Solarized Dark</option>'
|
this.theme_button.innerHTML += '<option value=\"solarizedDark\">Solarized Dark</option>'
|
||||||
this.theme_button.innerHTML += '<option value=\"solarizedLight\">Solarized Light</option>'
|
this.theme_button.innerHTML += '<option value=\"solarizedLight\">Solarized Light</option>'
|
||||||
this.theme_button.innerHTML += '<option value=\"sonicPi\">Sonic Pi</option>'
|
this.theme_button.innerHTML += '<option value=\"sonicPi\">Sonic Pi</option>'
|
||||||
|
this.theme_button.innerHTML += '<option value=\"soyuz\">Soyuz</option>'
|
||||||
this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
|
this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
|
||||||
this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
|
this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
|
||||||
this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })
|
this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue