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

index 50015ef99cea542582441819a9259897fdf3f854..b5ef1ca662c2a9ad675a0b835e7239f63b98808a 100644 (file)
@@ -337,6 +337,17 @@ function Donsol () {
     b_low: '#222222',
     b_inv: '#ffb545'
   }
+  this.pawbinTheme = {
+    background: '#2b2933',
+    f_high: '#f2f2f2',
+    f_med: '#00bdd6',
+    f_low: '#aa9fdf',
+    f_inv: '#1a1820',
+    b_high: '#1a1820',
+    b_med: '#24212c',
+    b_low: '#34303b',
+    b_inv: '#f2f2f2'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index a14d837d1c21f7afb24c451e675b49956fb80be2..30a1a92bff878cf44928d21fd34a0f85ed025853 100644 (file)
@@ -239,6 +239,9 @@ function Player () {
     if (theme_value.localeCompare('orca') === 0) {
       new_theme = donsol.orcaTheme
     }
+    if (theme_value.localeCompare('pawbin') === 0) {
+      new_theme = donsol.pawbinTheme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index 9a278f5eb8f6147236f8c97a44b8f8d19ffefea7..781c1606baf2bc013a8a438fc4c53d37b58412b0 100644 (file)
@@ -40,6 +40,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"obsidian\">Obsidian</option>'
     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=\"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) })