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

index 5dab52812fae83b6ad39651c15f8623a81c5aea7..b6e8ca3952377cef1bcb938e35f73507cf5ee829 100644 (file)
@@ -95,6 +95,17 @@ function Donsol () {
     b_low: '#15232D',
     b_inv: '#ffffff'
   }
+  this.commodoreTheme = {
+    background: '#a5a7fc',
+    f_high: '#ffffff',
+    f_med: '#444ae3',
+    f_low: '#ffd7cd',
+    f_inv: '#444ae3',
+    b_high: '#c2c4ff',
+    b_med: '#babcff',
+    b_low: '#b0b2ff',
+    b_inv: '#ffffff'
+  }
   this.gameboyTheme = {
     background: '#9BBC0F',
     f_high: '#0F380F',
index b05ae5d7dd3c3a68d0fc1d3e7e513835595baaa4..c218d2c5b7db56c0196a24bfcf68cf102167cf09 100644 (file)
@@ -173,6 +173,9 @@ function Player () {
     if (theme_value.localeCompare('cobalt') === 0) {
       new_theme = donsol.cobaltTheme
     }
+    if (theme_value.localeCompare('commodore') === 0) {
+      new_theme = donsol.commodoreTheme
+    }
     if (theme_value.localeCompare('gameboy') === 0) {
       new_theme = donsol.gameboyTheme
     }
index 0b919e6c97891c86361b4a61967698418578b13a..249772120d8366973e0091ea7cfeedffa49020c2 100644 (file)
@@ -18,6 +18,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"boysenberry\">Boysenberry</option>'
     this.theme_button.innerHTML += '<option value=\"coal\">Coal</option>'
     this.theme_button.innerHTML += '<option value=\"cobalt\">Cobalt</option>'
+    this.theme_button.innerHTML += '<option value=\"commodore\">Commodore</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>'