]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Marble theme
authorStephen Jianu <stephen@stephenjianu.com>
Mon, 14 Oct 2024 01:49:59 +0000 (20:49 -0500)
committerStephen Jianu <stephen@stephenjianu.com>
Mon, 14 Oct 2024 01:49:59 +0000 (20:49 -0500)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index de57279807d5cd1819e1942d2507ed4ea53ffbcf..edb82f0905e7601b57568991adde7f69433e14cd 100644 (file)
@@ -227,6 +227,17 @@ function Donsol () {
     b_low: '#BE95C4',
     b_inv: '#9F86C0'
   }
+  this.marbleTheme = {
+    background: '#FBFBF2',
+    f_high: '#3a3738',
+    f_med: '#847577',
+    f_low: '#bdb8b8',
+    f_inv: '#A6A2A2',
+    b_high: '#676164',
+    b_med: '#A6A2A2',
+    b_low: '#CFD2CD',
+    b_inv: '#676164'
+  }
   this.nightowlTheme = {
     background: '#011627',
     f_high: '#7fdbca',
index 790f1e1e49410ad6e422e3cc938e92702ebc15ab..24a7f9b7ac42db07b92ddfb44d91beef981242c7 100644 (file)
@@ -209,6 +209,9 @@ function Player () {
     if (theme_value.localeCompare('mahou') === 0) {
       new_theme = donsol.mahouTheme
     }
+    if (theme_value.localeCompare('marble') === 0) {
+      new_theme = donsol.marbleTheme
+    }
     if (theme_value.localeCompare('nightowl') === 0) {
       new_theme = donsol.nightowlTheme
     }
index 981dbdfa5f7c12391c00db4838856aacb74309da..0c999850cbd27162a0d643072d27ed35912e7f11 100644 (file)
@@ -30,6 +30,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"laundry\">Laundry</option>'
     this.theme_button.innerHTML += '<option value=\"lotus\">Lotus</option>'
     this.theme_button.innerHTML += '<option value=\"mahou\">Mahou</option>'
+    this.theme_button.innerHTML += '<option value=\"marble\">Marble</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>'