From: Stephen Jianu Date: Wed, 24 Dec 2025 17:48:15 +0000 (-0600) Subject: Add SK theme X-Git-Url: https://www.stephenjianu.com/gitweb/?a=commitdiff_plain;h=c53e4985615990796150325fb3d4a8ba89678c73;p=donsol-js.git Add SK theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 9ca58bc..9f47533 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -392,6 +392,17 @@ function Donsol () { b_low: '#4a3b44', b_inv: '#f5f5d4' } + this.skTheme = { + background: '#000709', + f_high: '#cbcbd3', + f_med: '#897668', + f_low: '#523d2c', + f_inv: '#3f4f5b', + b_high: '#aba49e', + b_med: '#59574b', + b_low: '#372823', + b_inv: '#8c5a3d' + } this.tapeTheme = { background: '#dad7cd', f_high: '#696861', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 131da93..935ae8d 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -254,6 +254,9 @@ function Player () { if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } + if (theme_value.localeCompare('sk') === 0) { + new_theme = donsol.skTheme + } if (theme_value.localeCompare('tape') === 0) { new_theme = donsol.tapeTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 95b27c6..210eb21 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -45,6 +45,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.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) }) this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })