From: Stephen Jianu Date: Sun, 7 Jan 2024 17:45:58 +0000 (-0600) Subject: Add Berry theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=fa1cbec081c2021bba80c451de138a9fcb5e25bc;p=donsol-js.git Add Berry theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 232a7ba..fa8ffc7 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -40,6 +40,17 @@ function Donsol () { b_low: '#111111', b_inv: '#affec7' } + this.berryTheme = { + background: '#9EB7FF', + f_high: '#3e8281', + f_med: '#FFFFFF', + f_low: '#c5f0ec', + f_inv: '#FFFFFF', + b_high: '#1C0A16', + b_med: '#499897', + b_low: '#6ADEDC', + b_inv: '#6ADEDC' + } this.gameboyTheme = { background: '#9BBC0F', f_high: '#0F380F', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index dfd3acd..4d89558 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -158,6 +158,9 @@ function Player () { if (theme_value.localeCompare('battlestation') === 0) { new_theme = donsol.battlestationTheme } + if (theme_value.localeCompare('berry') === 0) { + new_theme = donsol.berryTheme + } if (theme_value.localeCompare('gameboy') === 0) { new_theme = donsol.gameboyTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 0876c6d..78ed9d5 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -13,6 +13,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.innerHTML += ''