]> Stephen's Gitweb - donsol-js.git/commitdiff
Add SK theme
authorStephen Jianu <stephen@stephenjianu.com>
Wed, 24 Dec 2025 17:48:15 +0000 (11:48 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Wed, 24 Dec 2025 17:48:15 +0000 (11:48 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 9ca58bc82d913a7096a9e48ea368cd7468a3ecb0..9f475335a2d8c422c3ca3f9a9acc69debed5bf32 100644 (file)
@@ -392,6 +392,17 @@ function Donsol () {
     b_low: '#4a3b44',
     b_inv: '#f5f5d4'
   }
+  this.skTheme = {
+    background: '#000709',
+    f_high: '#cbcbd3',
+    f_med: '#897668',
+    f_low: '#523d2c',
+    f_inv: '#3f4f5b',
+    b_high: '#aba49e',
+    b_med: '#59574b',
+    b_low: '#372823',
+    b_inv: '#8c5a3d'
+  }
   this.tapeTheme = {
     background: '#dad7cd',
     f_high: '#696861',
index 131da937bdb5ad3435fb90431359ffba379fb427..935ae8df71bd7417b86de3ffd78e5dc823c89a81 100644 (file)
@@ -254,6 +254,9 @@ function Player () {
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
+    if (theme_value.localeCompare('sk') === 0) {
+      new_theme = donsol.skTheme
+    }
     if (theme_value.localeCompare('tape') === 0) {
       new_theme = donsol.tapeTheme
     }
index 95b27c614ffc485c5e054007df26adebe76fb284..210eb2184416d9ce420818d23b9a1442d1b66dc1 100644 (file)
@@ -45,6 +45,7 @@ function Settings () {
     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=\"sk\">SK</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) })