From: Stephen Jianu Date: Mon, 8 Dec 2025 03:35:01 +0000 (-0600) Subject: Add Rain on Wires theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2Ftheme;p=donsol-js.git Add Rain on Wires theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 7d3d770..9ca58bc 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -370,6 +370,17 @@ function Donsol () { b_low: '#222222', b_inv: '#ff4444' } + this.rainOnWiresTheme = { + background: '#010101', + f_high: '#c692bb', + f_med: '#149106', + f_low: '#8a6682', + f_inv: '#8D2E71', + b_high: '#8D2E71', + b_med: '#6E2455', + b_low: '#010101', + b_inv: '#159106' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index ca7cea2..131da93 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -248,6 +248,9 @@ function Player () { if (theme_value.localeCompare('polivoks') === 0) { new_theme = donsol.polivoksTheme } + if (theme_value.localeCompare('rainonwires') === 0) { + new_theme = donsol.rainOnWiresTheme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 080684e..95b27c6 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -43,6 +43,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) })