Add Roguelite and Tape themes

This commit is contained in:
Stephen Jianu 2023-12-31 17:00:33 -06:00
commit 6f8ed0141a
3 changed files with 30 additions and 0 deletions

View file

@ -158,6 +158,12 @@ function Player () {
if (theme_value.localeCompare('nightowl') === 0) {
new_theme = donsol.nightowlTheme
}
if (theme_value.localeCompare('roguelite') === 0) {
new_theme = donsol.rogueliteTheme
}
if (theme_value.localeCompare('tape') === 0) {
new_theme = donsol.tapeTheme
}
donsol.theme = new Theme(new_theme)
donsol.theme.load(new_theme)
donsol.theme.install(document.body)