Add Solarized Dark theme
This commit is contained in:
parent
5fe70aa5cb
commit
1feccd608f
3 changed files with 15 additions and 0 deletions
|
|
@ -414,6 +414,17 @@ function Donsol () {
|
|||
b_low: '#f5f5f5',
|
||||
b_inv: '#ed2c3e'
|
||||
}
|
||||
this.solarizedDarkTheme = {
|
||||
background: '#073642',
|
||||
f_high: '#93a1a1',
|
||||
f_med: '#6c71c4',
|
||||
f_low: '#586e75',
|
||||
f_inv: '#002b36',
|
||||
b_high: '#fdf6e3',
|
||||
b_med: '#eee8d5',
|
||||
b_low: '#002b36',
|
||||
b_inv: '#cb4b16'
|
||||
}
|
||||
this.tapeTheme = {
|
||||
background: '#dad7cd',
|
||||
f_high: '#696861',
|
||||
|
|
|
|||
|
|
@ -260,6 +260,9 @@ function Player () {
|
|||
if (theme_value.localeCompare('snow') === 0) {
|
||||
new_theme = donsol.snowTheme
|
||||
}
|
||||
if (theme_value.localeCompare('solarizedDark') === 0) {
|
||||
new_theme = donsol.solarizedDarkTheme
|
||||
}
|
||||
if (theme_value.localeCompare('tape') === 0) {
|
||||
new_theme = donsol.tapeTheme
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ function Settings () {
|
|||
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=\"solarizedDark\">Solarized Dark</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