]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Haxe theme
authorStephen Jianu <stephen@stephenjianu.com>
Thu, 10 Oct 2024 16:20:42 +0000 (11:20 -0500)
committerStephen Jianu <stephen@stephenjianu.com>
Thu, 10 Oct 2024 16:20:42 +0000 (11:20 -0500)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index be9a18a2063fdc37d58520d88f1d7083ce8ffca6..08a7c0b4a644f2cb177ae53b824db5d9e01a4abb 100644 (file)
@@ -161,6 +161,17 @@ function Donsol () {
     b_low: '#10151B',
     b_inv: '#8FAF9F'
   }
+  this.haxeTheme = {
+    background: '#141419',
+    f_high: '#FAB20B',
+    f_med: '#F47216',
+    f_low: '#F1471D',
+    f_inv: '#141419',
+    b_high: '#141419',
+    b_med: '#141419',
+    b_low: '#141419',
+    b_inv: '#FFFFFF'
+  }
   this.nightowlTheme = {
     background: '#011627',
     f_high: '#7fdbca',
index b6185c0fe9ce37c42d648b753268c8762384c8b8..dc5e3d71430754146271a4e77cefc062947c826b 100644 (file)
@@ -191,6 +191,9 @@ function Player () {
     if (theme_value.localeCompare('gotham') === 0) {
       new_theme = donsol.gothamTheme
     }
+    if (theme_value.localeCompare('haxe') === 0) {
+      new_theme = donsol.haxeTheme
+    }
     if (theme_value.localeCompare('nightowl') === 0) {
       new_theme = donsol.nightowlTheme
     }
index c33dedb56c64a073fd4b41fb0ed11b5a9611fefd..e68aadd4e5418fa19fc951da4c9f7f78c5e96e07 100644 (file)
@@ -24,6 +24,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"gameboy\">Game Boy</option>'
     this.theme_button.innerHTML += '<option value=\"garden\">Garden</option>'
     this.theme_button.innerHTML += '<option value=\"gotham\">Gotham</option>'
+    this.theme_button.innerHTML += '<option value=\"haxe\">Haxe</option>'
     this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'