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

index b5ef1ca662c2a9ad675a0b835e7239f63b98808a..de5aaa25d6cb26df61d5cf2a07b140e47ec4c5af 100644 (file)
@@ -348,6 +348,17 @@ function Donsol () {
     b_low: '#34303b',
     b_inv: '#f2f2f2'
   }
+  this.pico8Theme = {
+    background: '#000000',
+    f_high: '#ffffff',
+    f_med: '#fff1e8',
+    f_low: '#ff78a9',
+    f_inv: '#ffffff',
+    b_high: '#c2c3c7',
+    b_med: '#83769c',
+    b_low: '#695f56',
+    b_inv: '#00aefe'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index 30a1a92bff878cf44928d21fd34a0f85ed025853..9237d66dbd6cb31522855608c83948767343a5a5 100644 (file)
@@ -242,6 +242,9 @@ function Player () {
     if (theme_value.localeCompare('pawbin') === 0) {
       new_theme = donsol.pawbinTheme
     }
+    if (theme_value.localeCompare('pico8') === 0) {
+      new_theme = donsol.pico8Theme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index 781c1606baf2bc013a8a438fc4c53d37b58412b0..ecfdd1133d5811c82068cc26f7f1115343390651 100644 (file)
@@ -41,6 +41,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"op-1\">Op-1</option>'
     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=\"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) })