Add Nord theme

This commit is contained in:
Stephen Jianu 2024-10-13 20:53:06 -05:00
commit 88d91bb58f
3 changed files with 15 additions and 0 deletions

View file

@ -293,6 +293,17 @@ function Donsol () {
b_low: '#444444',
b_inv: '#000000'
}
this.nordTheme = {
background: '#2E3440',
f_high: '#ECEFF4',
f_med: '#9DC4C3',
f_low: '#B4B8C0',
f_inv: '#5E81AC',
b_high: '#5E81AC',
b_med: '#434C5E',
b_low: '#3B4252',
b_inv: '#ABCDCC'
}
this.rogueliteTheme = {
background: '#352b31',
f_high: '#f5f5d4',

View file

@ -227,6 +227,9 @@ function Player () {
if (theme_value.localeCompare('noir') === 0) {
new_theme = donsol.noirTheme
}
if (theme_value.localeCompare('nord') === 0) {
new_theme = donsol.nordTheme
}
if (theme_value.localeCompare('roguelite') === 0) {
new_theme = donsol.rogueliteTheme
}

View file

@ -36,6 +36,7 @@ function Settings () {
this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
this.theme_button.innerHTML += '<option value=\"ninetynine\">Ninety Nine</option>'
this.theme_button.innerHTML += '<option value=\"noir\">Noir</option>'
this.theme_button.innerHTML += '<option value=\"nord\">Nord</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) })