From 0acd1bc0398ef09d4c88dd58156fd1a2e7556d52 Mon Sep 17 00:00:00 2001 From: Stephen Jianu Date: Sun, 7 Jan 2024 11:36:21 -0600 Subject: [PATCH] Add Battlestation 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 9f77fbc..232a7ba 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -29,6 +29,17 @@ function Donsol () { b_low: '#322e33', b_inv: '#e47464' } + this.battlestationTheme = { + background: '#222222', + f_high: '#ffffff', + f_med: '#affec7', + f_low: '#888888', + f_inv: '#000000', + b_high: '#555555', + b_med: '#333333', + b_low: '#111111', + b_inv: '#affec7' + } this.gameboyTheme = { background: '#9BBC0F', f_high: '#0F380F', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index f5f5737..dfd3acd 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -155,6 +155,9 @@ function Player () { if (theme_value.localeCompare('apollo') === 0) { new_theme = donsol.apolloTheme } + if (theme_value.localeCompare('battlestation') === 0) { + new_theme = donsol.battlestationTheme + } if (theme_value.localeCompare('gameboy') === 0) { new_theme = donsol.gameboyTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index 47d7ce4..0876c6d 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -12,6 +12,7 @@ function Settings () { 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 += '' this.theme_button.innerHTML += '' -- 2.39.5