Add Soyuz theme

This commit is contained in:
Stephen Jianu 2026-01-25 15:34:43 -06:00
commit 9c2844b7c5
3 changed files with 15 additions and 0 deletions

View file

@ -447,6 +447,17 @@ function Donsol () {
b_low: '#ced0ce',
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 = {
background: '#dad7cd',
f_high: '#696861',

View file

@ -269,6 +269,9 @@ function Player () {
if (theme_value.localeCompare('sonicPi') === 0) {
new_theme = donsol.sonicPiTheme
}
if (theme_value.localeCompare('soyuz') === 0) {
new_theme = donsol.soyuzTheme
}
if (theme_value.localeCompare('tape') === 0) {
new_theme = donsol.tapeTheme
}

View file

@ -50,6 +50,7 @@ function Settings () {
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=\"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.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })