From 9ae67898f9bca9437d435df3a4206d452df92931 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sat, 29 Nov 2025 23:12:47 -0600 Subject: [PATCH] Add Op-1 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 b9dda2f..faa231c 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -315,6 +315,17 @@ function Donsol () { b_low: '#42464C', b_inv: '#ffcd22' } + this.op1Theme = { + background: '#0E0D11', + f_high: '#EFEFEF', + f_med: '#26936F', + f_low: '#A5435A', + f_inv: '#0E0D11', + b_high: '#191A26', + b_med: '#14151F', + b_low: '#101119', + b_inv: '#9F9FB3' + } this.rogueliteTheme = { background: '#352b31', f_high: '#f5f5d4', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index c76ea9a..f5a9d34 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -233,6 +233,9 @@ function Player () { if (theme_value.localeCompare('obsidian') === 0) { new_theme = donsol.obsidianTheme } + if (theme_value.localeCompare('op-1') === 0) { + new_theme = donsol.op1Theme + } if (theme_value.localeCompare('roguelite') === 0) { new_theme = donsol.rogueliteTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 7e34a18..2abc416 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -38,6 +38,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