]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Berry theme
authorStephen Jianu <stephen@stephenjianu.com>
Sun, 7 Jan 2024 17:45:58 +0000 (11:45 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Sun, 7 Jan 2024 17:45:58 +0000 (11:45 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 232a7baf20f2b4ffe07f3912eb5fead496a6dfda..fa8ffc71cc16c5c80e056501cfd6cd33d7f9bf4a 100644 (file)
@@ -40,6 +40,17 @@ function Donsol () {
     b_low: '#111111',
     b_inv: '#affec7'
   }
+  this.berryTheme = {
+    background: '#9EB7FF',
+    f_high: '#3e8281',
+    f_med: '#FFFFFF',
+    f_low: '#c5f0ec',
+    f_inv: '#FFFFFF',
+    b_high: '#1C0A16',
+    b_med: '#499897',
+    b_low: '#6ADEDC',
+    b_inv: '#6ADEDC'
+  }
   this.gameboyTheme = {
     background: '#9BBC0F',
     f_high: '#0F380F',
index dfd3acd1ac51254f9e4297ca80c5313bc0eccc33..4d89558d5c875d9fd275065bc6088ac42aa3e69f 100644 (file)
@@ -158,6 +158,9 @@ function Player () {
     if (theme_value.localeCompare('battlestation') === 0) {
       new_theme = donsol.battlestationTheme
     }
+    if (theme_value.localeCompare('berry') === 0) {
+      new_theme = donsol.berryTheme
+    }
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
index 0876c6dd4289c42752bd0ee83e03937db2784662..78ed9d5f541d19858248dfd55197870d77f15d46 100644 (file)
@@ -13,6 +13,7 @@ function Settings () {
     this.theme_button.innerHTML = '<option value=\"theme\">Theme (default)</option>'
     this.theme_button.innerHTML += '<option value=\"apollo\">Apollo</option>'
     this.theme_button.innerHTML += '<option value=\"battlestation\">Battlestation</option>'
+    this.theme_button.innerHTML += '<option value=\"berry\">Berry</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>'