]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Garden theme
authorStephen Jianu <stephen@stephenjianu.com>
Sun, 31 Mar 2024 19:54:15 +0000 (14:54 -0500)
committerStephen Jianu <stephen@stephenjianu.com>
Sun, 31 Mar 2024 19:54:15 +0000 (14:54 -0500)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 9df272ad0903cdf042c951897db1130684b4434a..a6b3d7757c878929a8a6b84ee04377a00cd4e8c6 100644 (file)
@@ -139,6 +139,17 @@ function Donsol () {
     b_low: '#9BBC0F',
     b_inv: '#0F380F'
   }
+  this.gardenTheme = {
+    background: '#28211c',
+    f_high: '#ffefc9',
+    f_med: '#9f9fa2',
+    f_low: '#a3832c',
+    f_inv: '#666666',
+    b_high: '#aa0000',
+    b_med: '#214c05',
+    b_low: '#48413a',
+    b_inv: '#4cb1cf'
+  }
   this.nightowlTheme = {
     background: '#011627',
     f_high: '#7fdbca',
index 3d14d9bad753d9280617c988c3971e2a0f35c7e6..d1a6be32a25b7b56cf14d9d2ebbd7d1f233171b8 100644 (file)
@@ -185,6 +185,9 @@ function Player () {
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
+    if (theme_value.localeCompare('garden') === 0) {
+      new_theme = donsol.gardenTheme
+    }
     if (theme_value.localeCompare('nightowl') === 0) {
       new_theme = donsol.nightowlTheme
     }
index d24b3c49397b2d7682946bfdf0e49afd6bb0f9bf..a4f4f6cc7d0d02b766d37b56b8a5702281b260ec 100644 (file)
@@ -22,6 +22,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"forestlawn\">Forest Lawn</option>'
     this.theme_button.innerHTML += '<option value=\"frameio\">Frame.io</option>'
     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=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'