From 1feccd608fcb2f8a8bccc5f587866d26d1c30e12 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Wed, 24 Dec 2025 12:00:42 -0600 Subject: [PATCH] Add Solarized Dark 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 328db8e..3d419c2 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -414,6 +414,17 @@ function Donsol () { b_low: '#f5f5f5', b_inv: '#ed2c3e' } + this.solarizedDarkTheme = { + background: '#073642', + f_high: '#93a1a1', + f_med: '#6c71c4', + f_low: '#586e75', + f_inv: '#002b36', + b_high: '#fdf6e3', + b_med: '#eee8d5', + b_low: '#002b36', + b_inv: '#cb4b16' + } this.tapeTheme = { background: '#dad7cd', f_high: '#696861', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 74c5d02..aa3c0d7 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -260,6 +260,9 @@ function Player () { if (theme_value.localeCompare('snow') === 0) { new_theme = donsol.snowTheme } + if (theme_value.localeCompare('solarizedDark') === 0) { + new_theme = donsol.solarizedDarkTheme + } if (theme_value.localeCompare('tape') === 0) { new_theme = donsol.tapeTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 09537d1..d8cfdaa 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -47,6 +47,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