From: Stephen Jianu Date: Thu, 18 Jan 2024 01:06:41 +0000 (-0600) Subject: Add Cobalt theme X-Git-Url: https://stephenjianu.com/gitweb/?a=commitdiff_plain;h=9ca916feac6998ec1ec5299b38e45c4521097563;p=donsol-js.git Add Cobalt theme --- diff --git a/sources/scripts/donsol.js b/sources/scripts/donsol.js index 4fa4983..5dab528 100644 --- a/sources/scripts/donsol.js +++ b/sources/scripts/donsol.js @@ -84,6 +84,17 @@ function Donsol () { b_low: '#DDDDDD', b_inv: '#ffffff' } + this.cobaltTheme = { + background: '#18364A', + f_high: '#ffffff', + f_med: '#ffc600', + f_low: '#0088ff', + f_inv: '#000000', + b_high: '#1B1A1C', + b_med: '#204863', + b_low: '#15232D', + b_inv: '#ffffff' + } this.gameboyTheme = { background: '#9BBC0F', f_high: '#0F380F', diff --git a/sources/scripts/player.js b/sources/scripts/player.js index 424f3b6..b05ae5d 100644 --- a/sources/scripts/player.js +++ b/sources/scripts/player.js @@ -170,6 +170,9 @@ function Player () { if (theme_value.localeCompare('coal') === 0) { new_theme = donsol.coalTheme } + if (theme_value.localeCompare('cobalt') === 0) { + new_theme = donsol.cobaltTheme + } if (theme_value.localeCompare('gameboy') === 0) { new_theme = donsol.gameboyTheme } diff --git a/sources/scripts/settings.js b/sources/scripts/settings.js index d4fb86b..0b919e6 100644 --- a/sources/scripts/settings.js +++ b/sources/scripts/settings.js @@ -17,6 +17,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 += ''