From 88d91bb58f6d77fd4edff22b65ee132d566e1abf Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 13 Oct 2024 20:53:06 -0500 Subject: [PATCH] Add Nord theme --- sources/scripts/donsol.js | 11 +++++++++++ sources/scripts/player.js | 3 +++ sources/scripts/settings.js | 1 + 3 files changed, 15 insertions(+) diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 7e741fd..0bf565c 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -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', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index f22393d..fd55542 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -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 } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index e2ad260..d740833 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -36,6 +36,7 @@ function Settings () { this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' + this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) }) -- 2.39.5