]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Cobalt theme
authorStephen Jianu <stephen@stephenjianu.com>
Thu, 18 Jan 2024 01:06:41 +0000 (19:06 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Thu, 18 Jan 2024 01:06:41 +0000 (19:06 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 4fa49834d7cfef71c0b13e5470fa75f4dd2c12fd..5dab52812fae83b6ad39651c15f8623a81c5aea7 100644 (file)
@@ -84,6 +84,17 @@ function Donsol () {
     b_low: '#DDDDDD',
     b_inv: '#ffffff'
   }
+  this.cobaltTheme = {
+    background: '#18364A',
+    f_high: '#ffffff',
+    f_med: '#ffc600',
+    f_low: '#0088ff',
+    f_inv: '#000000',
+    b_high: '#1B1A1C',
+    b_med: '#204863',
+    b_low: '#15232D',
+    b_inv: '#ffffff'
+  }
   this.gameboyTheme = {
     background: '#9BBC0F',
     f_high: '#0F380F',
index 424f3b622e69503b65cf9d9caad1d7a0d01c1d40..b05ae5d7dd3c3a68d0fc1d3e7e513835595baaa4 100644 (file)
@@ -170,6 +170,9 @@ function Player () {
     if (theme_value.localeCompare('coal') === 0) {
       new_theme = donsol.coalTheme
     }
+    if (theme_value.localeCompare('cobalt') === 0) {
+      new_theme = donsol.cobaltTheme
+    }
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
index d4fb86b094ce60f63b9e635ca3a11f14c75d9276..0b919e6c97891c86361b4a61967698418578b13a 100644 (file)
@@ -17,6 +17,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"bigtime\">Big Time</option>'
     this.theme_button.innerHTML += '<option value=\"boysenberry\">Boysenberry</option>'
     this.theme_button.innerHTML += '<option value=\"coal\">Coal</option>'
+    this.theme_button.innerHTML += '<option value=\"cobalt\">Cobalt</option>'
     this.theme_button.innerHTML += '<option value=\"gameboy\">Game Boy</option>'
     this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'