From e9da6fe369a15cabf1b8c1f61bbb0593ece15540 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Wed, 24 Dec 2025 12:11:53 -0600 Subject: [PATCH] Add Solarized Light 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 3d419c2..02b0dd3 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -425,6 +425,17 @@ function Donsol () { b_low: '#002b36', b_inv: '#cb4b16' } + this.solarizedLightTheme = { + background: '#eee8d5', + f_high: '#586e75', + f_med: '#6c71c4', + f_low: '#93a1a1', + f_inv: '#fdf6e3', + b_high: '#002b36', + b_med: '#073642', + b_low: '#fdf6e3', + b_inv: '#cb4b16' + } this.tapeTheme = { background: '#dad7cd', f_high: '#696861', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index aa3c0d7..29a9300 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -263,6 +263,9 @@ function Player () { if (theme_value.localeCompare('solarizedDark') === 0) { new_theme = donsol.solarizedDarkTheme } + if (theme_value.localeCompare('solarizedLight') === 0) { + new_theme = donsol.solarizedLightTheme + } if (theme_value.localeCompare('tape') === 0) { new_theme = donsol.tapeTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index d8cfdaa..d14a05a 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -48,6 +48,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.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) }) this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) }) -- 2.39.5