From b56b3597bbd02ddf3fcaa1f3ebc866f5dab8c285 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Wed, 17 Jan 2024 19:14:59 -0600 Subject: [PATCH] Add Commodore 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 5dab528..b6e8ca3 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -95,6 +95,17 @@ function Donsol () { b_low: '#15232D', b_inv: '#ffffff' } + this.commodoreTheme = { + background: '#a5a7fc', + f_high: '#ffffff', + f_med: '#444ae3', + f_low: '#ffd7cd', + f_inv: '#444ae3', + b_high: '#c2c4ff', + b_med: '#babcff', + b_low: '#b0b2ff', + b_inv: '#ffffff' + } this.gameboyTheme = { background: '#9BBC0F', f_high: '#0F380F', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index b05ae5d..c218d2c 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -173,6 +173,9 @@ function Player () { if (theme_value.localeCompare('cobalt') === 0) { new_theme = donsol.cobaltTheme } + if (theme_value.localeCompare('commodore') === 0) { + new_theme = donsol.commodoreTheme + } if (theme_value.localeCompare('gameboy') === 0) { new_theme = donsol.gameboyTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 0b919e6..2497721 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -18,6 +18,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.innerHTML += '' this.theme_button.innerHTML += '' -- 2.39.5