From: Stephen Jianu Date: Sun, 7 Jan 2024 17:36:21 +0000 (-0600) Subject: Add Battlestation theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=0acd1bc0398ef09d4c88dd58156fd1a2e7556d52;p=donsol-js.git Add Battlestation theme --- 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 += ''