From 9c2844b7c5f812c5d2a45b7a7342fd22015d2958 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 25 Jan 2026 15:34:43 -0600 Subject: [PATCH] Add Soyuz theme --- sources/scripts/donsol.js | 11 +++++++++++ sources/scripts/player.js | 3 +++ sources/scripts/settings.js | 1 + 3 files changed, 15 insertions(+) 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) }) -- 2.39.5