From: Stephen Jianu Date: Mon, 8 Dec 2025 03:31:26 +0000 (-0600) Subject: Add Polivoks theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=c75018d50f032c695087d964a85e3fa797768de8;p=donsol-js.git Add Polivoks theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index de5aaa2..7d3d770 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -359,6 +359,17 @@ function Donsol () { b_low: '#695f56', b_inv: '#00aefe' } + this.polivoksTheme = { + background: '#111111', + f_high: '#efefef', + f_med: '#ff4444', + f_low: '#333333', + f_inv: '#000000', + b_high: '#666666', + b_med: '#444444', + b_low: '#222222', + b_inv: '#ff4444' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 9237d66..ca7cea2 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -245,6 +245,9 @@ function Player () { if (theme_value.localeCompare('pico8') === 0) { new_theme = donsol.pico8Theme } + if (theme_value.localeCompare('polivoks') === 0) { + new_theme = donsol.polivoksTheme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index ecfdd11..080684e 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -42,6 +42,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) })