From: Stephen Jianu Date: Sun, 25 Jan 2026 21:34:43 +0000 (-0600) Subject: Add Soyuz theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=9c2844b7c5f812c5d2a45b7a7342fd22015d2958;p=donsol-js.git Add Soyuz theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index c1207ad..bbd9d37 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -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', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 14a72e7..06cb89a 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -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 } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index b4522cb..43f6cc3 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -50,6 +50,7 @@ function Settings () { this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' + this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' 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) })