From c75018d50f032c695087d964a85e3fa797768de8 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 7 Dec 2025 21:31:26 -0600 Subject: [PATCH] Add Polivoks theme --- sources/scripts/donsol.js | 11 +++++++++++ sources/scripts/player.js | 3 +++ sources/scripts/settings.js | 1 + 3 files changed, 15 insertions(+) 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) }) -- 2.39.5