From f6f6d241f1eccf519e1fb66487af77e3952f871d Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 25 Jan 2026 15:35:08 -0600 Subject: [PATCH] Add Teenage 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 bbd9d37..ad44b82 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -469,6 +469,17 @@ function Donsol () { b_low: '#e5e3dc', b_inv: '#eb3f48' } + this.teenageTheme = { + background: '#a1a1a1', + f_high: '#222222', + f_med: '#e00b30', + f_low: '#888888', + f_inv: '#ffffff', + b_high: '#555555', + b_med: '#fbba2d', + b_low: '#b3b3b3', + b_inv: '#0e7242' + } this.theme = new Theme(this.defaultTheme) diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 06cb89a..69cef26 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -275,6 +275,9 @@ function Player () { if (theme_value.localeCompare('tape') === 0) { new_theme = donsol.tapeTheme } + if (theme_value.localeCompare('teenage') === 0) { + new_theme = donsol.teenageTheme + } 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 43f6cc3..1e12e60 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -52,6 +52,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) })