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

index 9f77fbc8e30ee42ffae650ff163d2457aeb192c9..232a7baf20f2b4ffe07f3912eb5fead496a6dfda 100644 (file)
@@ -29,6 +29,17 @@ function Donsol () {
     b_low: '#322e33',
     b_inv: '#e47464'
   }
+  this.battlestationTheme = {
+    background: '#222222',
+    f_high: '#ffffff',
+    f_med: '#affec7',
+    f_low: '#888888',
+    f_inv: '#000000',
+    b_high: '#555555',
+    b_med: '#333333',
+    b_low: '#111111',
+    b_inv: '#affec7'
+  }
   this.gameboyTheme = {
     background: '#9BBC0F',
     f_high: '#0F380F',
index f5f57375df4ed5cb49e7d97f50a5581de2c751d9..dfd3acd1ac51254f9e4297ca80c5313bc0eccc33 100644 (file)
@@ -155,6 +155,9 @@ function Player () {
     if (theme_value.localeCompare('apollo') === 0) {
       new_theme = donsol.apolloTheme
     }
+    if (theme_value.localeCompare('battlestation') === 0) {
+      new_theme = donsol.battlestationTheme
+    }
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
index 47d7ce4db5e06012413ac28c6d547db3612ce58f..0876c6dd4289c42752bd0ee83e03937db2784662 100644 (file)
@@ -12,6 +12,7 @@ function Settings () {
     this.theme_button.setAttribute('class', 'theme button')
     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=\"gameboy\">Game Boy</option>'
     this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'