From 34787535974222c4a73702dd498ee2d4c6b31ada Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 13 Oct 2024 20:52:49 -0500 Subject: [PATCH] Add Noir 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 482ca3a..7e741fd 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -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', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 5848b67..f22393d 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -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 } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 15761fe..e2ad260 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -35,6 +35,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