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

index de5aaa25d6cb26df61d5cf2a07b140e47ec4c5af..7d3d77006f602e7d398d16a9d3caf1f0eebe4939 100644 (file)
@@ -359,6 +359,17 @@ function Donsol () {
     b_low: '#695f56',
     b_inv: '#00aefe'
   }
+  this.polivoksTheme = {
+    background: '#111111',
+    f_high: '#efefef',
+    f_med: '#ff4444',
+    f_low: '#333333',
+    f_inv: '#000000',
+    b_high: '#666666',
+    b_med: '#444444',
+    b_low: '#222222',
+    b_inv: '#ff4444'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index 9237d66dbd6cb31522855608c83948767343a5a5..ca7cea20541a980d53a61e52825d220bf495a1d6 100644 (file)
@@ -245,6 +245,9 @@ function Player () {
     if (theme_value.localeCompare('pico8') === 0) {
       new_theme = donsol.pico8Theme
     }
+    if (theme_value.localeCompare('polivoks') === 0) {
+      new_theme = donsol.polivoksTheme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index ecfdd1133d5811c82068cc26f7f1115343390651..080684eeb7e461b2fe4fa3a12f6b218e228a92dd 100644 (file)
@@ -42,6 +42,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"orca">Orca</option>'
     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=\"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) })