From: Stephen Jianu Date: Wed, 24 Dec 2025 17:52:51 +0000 (-0600) Subject: Add Snow theme X-Git-Url: https://www.stephenjianu.com/gitweb/?a=commitdiff_plain;h=5fe70aa5cb513ad0b9654a3653f8aabbb574e268;p=donsol-js.git Add Snow theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 9f47533..328db8e 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -403,6 +403,17 @@ function Donsol () { b_low: '#372823', b_inv: '#8c5a3d' } + this.snowTheme = { + background: '#eeefee', + f_high: '#222222', + f_med: '#999999', + f_low: '#bbbcbb', + f_inv: '#545454', + b_high: '#545454', + b_med: '#ced0ce', + b_low: '#f5f5f5', + b_inv: '#ed2c3e' + } this.tapeTheme = { background: '#dad7cd', f_high: '#696861', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 935ae8d..74c5d02 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -257,6 +257,9 @@ function Player () { if (theme_value.localeCompare('sk') === 0) { new_theme = donsol.skTheme } + if (theme_value.localeCompare('snow') === 0) { + new_theme = donsol.snowTheme + } if (theme_value.localeCompare('tape') === 0) { new_theme = donsol.tapeTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 210eb21..09537d1 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -46,6 +46,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) })