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

index 08a7c0b4a644f2cb177ae53b824db5d9e01a4abb..25c4b309edec1b28d846ebe0c4dce3ff3b50a315 100644 (file)
@@ -172,6 +172,17 @@ function Donsol () {
     b_low: '#141419',
     b_inv: '#FFFFFF'
   }
+  this.isotopeTheme = {
+    background: '#000000',
+    f_high: '#FFFFFF',
+    f_med: '#33FF00',
+    f_low: '#FF0099',
+    f_inv: '#000000',
+    b_high: '#505050',
+    b_med: '#000000',
+    b_low: '#000000',
+    b_inv: '#FFFFFF'
+  }
   this.nightowlTheme = {
     background: '#011627',
     f_high: '#7fdbca',
index dc5e3d71430754146271a4e77cefc062947c826b..7f42c3b0fb05f034ec8a0f0bd38e9d6549fa8139 100644 (file)
@@ -194,6 +194,9 @@ function Player () {
     if (theme_value.localeCompare('haxe') === 0) {
       new_theme = donsol.haxeTheme
     }
+    if (theme_value.localeCompare('isotope') === 0) {
+      new_theme = donsol.isotopeTheme
+    }
     if (theme_value.localeCompare('nightowl') === 0) {
       new_theme = donsol.nightowlTheme
     }
index e68aadd4e5418fa19fc951da4c9f7f78c5e96e07..96f9a10386c76b7868780d1c17db9870373f7d28 100644 (file)
@@ -25,6 +25,7 @@ function Settings () {
     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=\"isotope\">Isotope</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>'