]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Rain on Wires theme feature/theme
authorStephen Jianu <stephen@stephenjianu.com>
Mon, 8 Dec 2025 03:35:01 +0000 (21:35 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Mon, 8 Dec 2025 03:35:01 +0000 (21:35 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 7d3d77006f602e7d398d16a9d3caf1f0eebe4939..9ca58bc82d913a7096a9e48ea368cd7468a3ecb0 100644 (file)
@@ -370,6 +370,17 @@ function Donsol () {
     b_low: '#222222',
     b_inv: '#ff4444'
   }
+  this.rainOnWiresTheme = {
+    background: '#010101',
+    f_high: '#c692bb',
+    f_med: '#149106',
+    f_low: '#8a6682',
+    f_inv: '#8D2E71',
+    b_high: '#8D2E71',
+    b_med: '#6E2455',
+    b_low: '#010101',
+    b_inv: '#159106'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index ca7cea20541a980d53a61e52825d220bf495a1d6..131da937bdb5ad3435fb90431359ffba379fb427 100644 (file)
@@ -248,6 +248,9 @@ function Player () {
     if (theme_value.localeCompare('polivoks') === 0) {
       new_theme = donsol.polivoksTheme
     }
+    if (theme_value.localeCompare('rainonwires') === 0) {
+      new_theme = donsol.rainOnWiresTheme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index 080684eeb7e461b2fe4fa3a12f6b218e228a92dd..95b27c614ffc485c5e054007df26adebe76fb284 100644 (file)
@@ -43,6 +43,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"pawbin">Pawbin</option>'
     this.theme_button.innerHTML += '<option value=\"pico8">PICO-8</option>'
     this.theme_button.innerHTML += '<option value=\"polivoks">Polivoks</option>'
+    this.theme_button.innerHTML += '<option value=\"rainonwires">Rain on Wires</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
     this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })