From 1e58a3760fb28652cb5ae2726cb6356c8ae41c1f Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 7 Dec 2025 21:16:49 -0600 Subject: [PATCH] Add PICO-8 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 b5ef1ca..de5aaa2 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -348,6 +348,17 @@ function Donsol () { b_low: '#34303b', b_inv: '#f2f2f2' } + this.pico8Theme = { + background: '#000000', + f_high: '#ffffff', + f_med: '#fff1e8', + f_low: '#ff78a9', + f_inv: '#ffffff', + b_high: '#c2c3c7', + b_med: '#83769c', + b_low: '#695f56', + b_inv: '#00aefe' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 30a1a92..9237d66 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -242,6 +242,9 @@ function Player () { if (theme_value.localeCompare('pawbin') === 0) { new_theme = donsol.pawbinTheme } + if (theme_value.localeCompare('pico8') === 0) { + new_theme = donsol.pico8Theme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 781c160..ecfdd11 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -41,6 +41,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