Add Snow theme
This commit is contained in:
parent
c53e498561
commit
5fe70aa5cb
3 changed files with 15 additions and 0 deletions
|
|
@ -403,6 +403,17 @@ function Donsol () {
|
|||
b_low: '#372823',
|
||||
b_inv: '#8c5a3d'
|
||||
}
|
||||
this.snowTheme = {
|
||||
background: '#eeefee',
|
||||
f_high: '#222222',
|
||||
f_med: '#999999',
|
||||
f_low: '#bbbcbb',
|
||||
f_inv: '#545454',
|
||||
b_high: '#545454',
|
||||
b_med: '#ced0ce',
|
||||
b_low: '#f5f5f5',
|
||||
b_inv: '#ed2c3e'
|
||||
}
|
||||
this.tapeTheme = {
|
||||
background: '#dad7cd',
|
||||
f_high: '#696861',
|
||||
|
|
|
|||
|
|
@ -257,6 +257,9 @@ function Player () {
|
|||
if (theme_value.localeCompare('sk') === 0) {
|
||||
new_theme = donsol.skTheme
|
||||
}
|
||||
if (theme_value.localeCompare('snow') === 0) {
|
||||
new_theme = donsol.snowTheme
|
||||
}
|
||||
if (theme_value.localeCompare('tape') === 0) {
|
||||
new_theme = donsol.tapeTheme
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ function Settings () {
|
|||
this.theme_button.innerHTML += '<option value=\"rainonwires">Rain on Wires</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"sk\">SK</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"snow\">Snow</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('change', () => { donsol.player.change_theme(this.theme_button.value) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue