From: Stephen Jianu Date: Mon, 14 Oct 2024 01:52:27 +0000 (-0500) Subject: Add Ninety Nine theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=ffe7b0a8bc1b5c66ed91f9d98cb87396ac423f29;p=donsol-js.git Add Ninety Nine theme --- 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) })