From: Stephen Jianu Date: Sun, 25 Jan 2026 21:37:07 +0000 (-0600) Subject: Add Vacuui theme X-Git-Url: https://www.stephenjianu.com/gitweb/?a=commitdiff_plain;h=aef2bd440b64d1eea4de652a9d520ae25a4d7563;p=donsol-js.git Add Vacuui theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 88942f1..6cdc19c 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -491,6 +491,17 @@ function Donsol () { b_low: '#0000ff', b_inv: '#ffffff' } + this.vacuuiTheme = { + background: '#22282a', + f_high: '#f1f2f3', + f_med: '#a6e22e', + f_low: '#66d9ef', + f_inv: '#f92672', + b_high: '#678cb1', + b_med: '#4f6164', + b_low: '#42464C', + b_inv: '#e6db74' + } this.theme = new Theme(this.defaultTheme) diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 84c6c0a..cc81793 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -281,6 +281,9 @@ function Player () { if (theme_value.localeCompare('teletext') === 0) { new_theme = donsol.teletextTheme } + if (theme_value.localeCompare('vacuui') === 0) { + new_theme = donsol.vacuuiTheme + } 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 be0c24e..67204aa 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -54,6 +54,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) })