From 265d098d9fac5e48da00633808b0b7b503a64e76 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 25 Jan 2026 15:37:26 -0600 Subject: [PATCH] Add Zenburn 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 6cdc19c..2b54941 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -502,6 +502,17 @@ function Donsol () { b_low: '#42464C', b_inv: '#e6db74' } + this.zenburnTheme = { + background: '#464646', + f_high: '#DCDCCC', + f_med: '#DCA3A3', + f_low: '#7F9F7F', + f_inv: '#000D18', + b_high: '#262626', + b_med: '#333333', + b_low: '#3F3F3F', + b_inv: '#8FAF9F' + } this.theme = new Theme(this.defaultTheme) diff --git a/sources/scripts/player.js b/sources/scripts/player.js index cc81793..2b932b5 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -284,6 +284,9 @@ function Player () { if (theme_value.localeCompare('vacuui') === 0) { new_theme = donsol.vacuuiTheme } + if (theme_value.localeCompare('zenburn') === 0) { + new_theme = donsol.zenburnTheme + } donsol.theme = new Theme(new_theme) donsol.theme.load(new_theme) donsol.theme.install(document.body) diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 67204aa..d1ebc4d 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -55,6 +55,7 @@ function Settings () { 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