From ffe7b0a8bc1b5c66ed91f9d98cb87396ac423f29 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 13 Oct 2024 20:52:27 -0500 Subject: [PATCH] Add Ninety Nine 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 46e5812..482ca3a 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -271,6 +271,17 @@ function Donsol () { b_low: '#2f4759', b_inv: '#7fdbca' } + this.ninetynineTheme = { + background: '#000000', + f_high: '#efefef', + f_med: '#cdcdcd', + f_low: '#676767', + f_inv: '#0a0a0a', + b_high: '#eeeeee', + b_med: '#ffd220', + b_low: '#464646', + b_inv: '#ff3300' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 7dfb626..5848b67 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -221,6 +221,9 @@ function Player () { if (theme_value.localeCompare('nightowl') === 0) { new_theme = donsol.nightowlTheme } + if (theme_value.localeCompare('ninetynine') === 0) { + new_theme = donsol.ninetynineTheme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 14f967d..15761fe 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -34,6 +34,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