forked from GitHub-Mirrors/foundry-sw5e
split styles to accomodate themes; added light/dark theme
This commit is contained in:
parent
f7d7580b3a
commit
b75aafd3ce
21 changed files with 2456 additions and 104 deletions
3
sw5e.js
3
sw5e.js
|
@ -159,6 +159,9 @@ Hooks.once("setup", function() {
|
|||
}
|
||||
// add DND5E translation for module compatability
|
||||
game.i18n.translations.DND5E = game.i18n.translations.SW5E;
|
||||
// console.log(game.settings.get("sw5e", "colorTheme"));
|
||||
let theme = game.settings.get("sw5e", "colorTheme") + '-theme';
|
||||
document.body.classList.add(theme);
|
||||
});
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue