From 297caa928fc0082fc91445918682eccb9a4f8245 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 7 Jan 2024 11:12:05 -0600 Subject: [PATCH] Add Apollo 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 ec9f91a..9f77fbc 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -18,6 +18,17 @@ function Donsol () { b_low: '#333333', b_inv: '#a93232' } + this.apolloTheme= { + background: '#29272b', + f_high: '#ffffff', + f_med: '#e47464', + f_low: '#66606b', + f_inv: '#000000', + b_high: '#000000', + b_med: '#201e21', + b_low: '#322e33', + b_inv: '#e47464' + } this.gameboyTheme = { background: '#9BBC0F', f_high: '#0F380F', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 73eb54e..f5f5737 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -152,6 +152,9 @@ function Player () { if (theme_value.localeCompare('theme') === 0) { new_theme = donsol.defaultTheme } + if (theme_value.localeCompare('apollo') === 0) { + new_theme = donsol.apolloTheme + } if (theme_value.localeCompare('gameboy') === 0) { new_theme = donsol.gameboyTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 1fa776f..47d7ce4 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -11,6 +11,7 @@ function Settings () { this.theme_button = document.createElement('select') this.theme_button.setAttribute('class', 'theme button') this.theme_button.innerHTML = '' + this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' this.theme_button.innerHTML += '' -- 2.39.5