Add Op-1 theme

This commit is contained in:
Stephen Jianu 2025-11-29 23:12:47 -06:00
commit 9ae67898f9
3 changed files with 15 additions and 0 deletions

View file

@ -315,6 +315,17 @@ function Donsol () {
b_low: '#42464C',
b_inv: '#ffcd22'
}
this.op1Theme = {
background: '#0E0D11',
f_high: '#EFEFEF',
f_med: '#26936F',
f_low: '#A5435A',
f_inv: '#0E0D11',
b_high: '#191A26',
b_med: '#14151F',
b_low: '#101119',
b_inv: '#9F9FB3'
}
this.rogueliteTheme = {
background: '#352b31',
f_high: '#f5f5d4',

View file

@ -233,6 +233,9 @@ function Player () {
if (theme_value.localeCompare('obsidian') === 0) {
new_theme = donsol.obsidianTheme
}
if (theme_value.localeCompare('op-1') === 0) {
new_theme = donsol.op1Theme
}
if (theme_value.localeCompare('roguelite') === 0) {
new_theme = donsol.rogueliteTheme
}

View file

@ -38,6 +38,7 @@ function Settings () {
this.theme_button.innerHTML += '<option value=\"noir\">Noir</option>'
this.theme_button.innerHTML += '<option value=\"nord\">Nord</option>'
this.theme_button.innerHTML += '<option value=\"obsidian\">Obsidian</option>'
this.theme_button.innerHTML += '<option value=\"op-1\">Op-1</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) })