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

index 7e741fd99ed6982c8addec9d1d771d4c41ce0084..0bf565cb077dd32e61047d5317009e12e21d9f22 100644 (file)
@@ -293,6 +293,17 @@ function Donsol () {
     b_low: '#444444',
     b_inv: '#000000'
   }
+  this.nordTheme = {
+    background: '#2E3440',
+    f_high: '#ECEFF4',
+    f_med: '#9DC4C3',
+    f_low: '#B4B8C0',
+    f_inv: '#5E81AC',
+    b_high: '#5E81AC',
+    b_med: '#434C5E',
+    b_low: '#3B4252',
+    b_inv: '#ABCDCC'
+  }
   this.rogueliteTheme = {
     background: '#352b31',
     f_high: '#f5f5d4',
index f22393de2e224fabde3ba60e7e3bcf25cb5a13c2..fd555425325cc03df5c964348c47a46cd0d79497 100644 (file)
@@ -227,6 +227,9 @@ function Player () {
     if (theme_value.localeCompare('noir') === 0) {
       new_theme = donsol.noirTheme
     }
+    if (theme_value.localeCompare('nord') === 0) {
+      new_theme = donsol.nordTheme
+    }
     if (theme_value.localeCompare('roguelite') === 0) {
       new_theme = donsol.rogueliteTheme
     }
index e2ad2601a1ab9c0fe5395c105d8475b59f3bdb7f..d740833108e4ae5a06654217c503c4bca5b88569 100644 (file)
@@ -36,6 +36,7 @@ function Settings () {
     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=\"nord\">Nord</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) })