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

index 482ca3a8be3b8a0e339b3e00b2006c4b15a7d9ec..7e741fd99ed6982c8addec9d1d771d4c41ce0084 100644 (file)
@@ -282,6 +282,17 @@ function Donsol () {
     b_low: '#464646',
     b_inv: '#ff3300'
   }
+  this.noirTheme = {
+    background: '#222222',
+    f_high: '#ffffff',
+    f_med: '#cccccc',
+    f_low: '#999999',
+    f_inv: '#ffffff',
+    b_high: '#888888',
+    b_med: '#666666',
+    b_low: '#444444',
+    b_inv: '#000000'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index 5848b6780b3a0325e9f7c49153d6c774bd5d25d7..f22393de2e224fabde3ba60e7e3bcf25cb5a13c2 100644 (file)
@@ -224,6 +224,9 @@ function Player () {
     if (theme_value.localeCompare('ninetynine') === 0) {
       new_theme = donsol.ninetynineTheme
     }
+    if (theme_value.localeCompare('noir') === 0) {
+      new_theme = donsol.noirTheme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index 15761fe91e714206e34d42c579561a236505dbb2..e2ad2601a1ab9c0fe5395c105d8475b59f3bdb7f 100644 (file)
@@ -35,6 +35,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"muzieca\">Muzieca</option>'
     this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
     this.theme_button.innerHTML += '<option value=\"ninetynine\">Ninety Nine</option>'
+    this.theme_button.innerHTML += '<option value=\"noir\">Noir</option>'
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
     this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })