Add PICO-8 theme
This commit is contained in:
parent
b5109f67f2
commit
1e58a3760f
3 changed files with 15 additions and 0 deletions
|
|
@ -348,6 +348,17 @@ function Donsol () {
|
|||
b_low: '#34303b',
|
||||
b_inv: '#f2f2f2'
|
||||
}
|
||||
this.pico8Theme = {
|
||||
background: '#000000',
|
||||
f_high: '#ffffff',
|
||||
f_med: '#fff1e8',
|
||||
f_low: '#ff78a9',
|
||||
f_inv: '#ffffff',
|
||||
b_high: '#c2c3c7',
|
||||
b_med: '#83769c',
|
||||
b_low: '#695f56',
|
||||
b_inv: '#00aefe'
|
||||
}
|
||||
this.rogueliteTheme = {
|
||||
background: '#352b31',
|
||||
f_high: '#f5f5d4',
|
||||
|
|
|
|||
|
|
@ -242,6 +242,9 @@ function Player () {
|
|||
if (theme_value.localeCompare('pawbin') === 0) {
|
||||
new_theme = donsol.pawbinTheme
|
||||
}
|
||||
if (theme_value.localeCompare('pico8') === 0) {
|
||||
new_theme = donsol.pico8Theme
|
||||
}
|
||||
if (theme_value.localeCompare('roguelite') === 0) {
|
||||
new_theme = donsol.rogueliteTheme
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ function Settings () {
|
|||
this.theme_button.innerHTML += '<option value=\"op-1\">Op-1</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"orca">Orca</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"pawbin">Pawbin</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"pico8">PICO-8</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
|
||||
this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
|
||||
this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue