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