]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Soyuz theme
authorStephen Jianu <stephen@stephenjianu.com>
Sun, 25 Jan 2026 21:34:43 +0000 (15:34 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Sun, 25 Jan 2026 21:34:43 +0000 (15:34 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index c1207ad124a8c2e0417de9f1373e4740a6ad78e5..bbd9d37e2bd9b3b09eb3f984c4b1b474e224121b 100644 (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',
index 14a72e762d87b48462e723c3f26a20e64717096f..06cb89aa50db1411bc464fd239525c220472c263 100644 (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
     }
index b4522cb2b6d15be818bde0f7cc8d2d00ebc976a3..43f6cc3c80517e4245dfd0a0ece35998b57e9471 100644 (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) })