From: Stephen Jianu Date: Mon, 8 Dec 2025 03:12:09 +0000 (-0600) Subject: Add Pawbin theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=b5109f67f229c24bfea2b8c82bab5a277c8d2cc0;p=donsol-js.git Add Pawbin theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 50015ef..b5ef1ca 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -337,6 +337,17 @@ function Donsol () { b_low: '#222222', b_inv: '#ffb545' } + this.pawbinTheme = { + background: '#2b2933', + f_high: '#f2f2f2', + f_med: '#00bdd6', + f_low: '#aa9fdf', + f_inv: '#1a1820', + b_high: '#1a1820', + b_med: '#24212c', + b_low: '#34303b', + b_inv: '#f2f2f2' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index a14d837..30a1a92 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -239,6 +239,9 @@ function Player () { if (theme_value.localeCompare('orca') === 0) { new_theme = donsol.orcaTheme } + if (theme_value.localeCompare('pawbin') === 0) { + new_theme = donsol.pawbinTheme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 9a278f5..781c160 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -40,6 +40,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) })