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

index 682a33608b4871dbd4e9f3342f89c86e35235cdd..4fa49834d7cfef71c0b13e5470fa75f4dd2c12fd 100644 (file)
@@ -73,6 +73,17 @@ function Donsol () {
     b_low: '#000000',
     b_inv: '#873260'
   }
+  this.coalTheme = {
+    background: '#EDEAEA',
+    f_high: '#393B3F',
+    f_med: '#808790',
+    f_low: '#A3A3A4',
+    f_inv: '#000000',
+    b_high: '#333333',
+    b_med: '#777777',
+    b_low: '#DDDDDD',
+    b_inv: '#ffffff'
+  }
   this.gameboyTheme = {
     background: '#9BBC0F',
     f_high: '#0F380F',
index c37976ffd394a40565897bcbeeb40868d6212930..424f3b622e69503b65cf9d9caad1d7a0d01c1d40 100644 (file)
@@ -167,6 +167,9 @@ function Player () {
     if (theme_value.localeCompare('boysenberry') === 0) {
       new_theme = donsol.boysenberryTheme
     }
+    if (theme_value.localeCompare('coal') === 0) {
+      new_theme = donsol.coalTheme
+    }
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
index 311fc18be5bf9f39e7caa30804fa6943db4fdb92..d4fb86b094ce60f63b9e635ca3a11f14c75d9276 100644 (file)
@@ -16,6 +16,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"berry\">Berry</option>'
     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=\"gameboy\">Game Boy</option>'
     this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'