Skip to content

Commit

Permalink
1.12.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 19, 2023
1 parent d95d0f3 commit 0576121
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.12.5.1

- (SWADE) Finally for reals exluded SWPF sheets once and for all. Thanks, Pinnacle Entertainment Group!

# 1.12.5

- (SWADE) Finally exluded SWPF sheets once and for all. Thanks, Pinnacle Entertainment Group!
Expand Down
4 changes: 3 additions & 1 deletion modules/base-theme-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Hooks.on("renderApplication", (app, html, data) => {
// Add .dorako-ui to all always-styled applications
for (const app of [...baseThemeApplications]) {
Hooks.on("render" + app, (app, html, data) => {
if (app.constructor.name.startsWith("SWPF")) return; // SWPFCompendiumTOC, SWPFSheet
let html0 = html[0];
console.debug(`${MODULE_NAME} | baseThemeApplications | render${app.constructor.name} => add .dorako-ui`);
console.debug({ app });
Expand Down Expand Up @@ -84,6 +85,7 @@ Hooks.on("renderDialog", (app, html, data) => {
Hooks.on("renderApplication", (app, html, data) => {
let html0 = html[0];
if (!html0.classList.contains("window-app")) return;
if (app.constructor.name.startsWith("SWPF")) return; // SWPFCompendiumTOC, SWPFSheet
if (html0.matches(premiumModuleSelector)) {
console.debug(
`${MODULE_NAME} | render${app.constructor.name} | matches premiumModuleSelector => do not add .dorako-ui`
Expand All @@ -108,7 +110,7 @@ for (const app of [...baseThemePf2eSheets]) {
Hooks.on("render" + app, (app, html, data) => {
let html0 = html[0];
if (!html0.classList.contains("window-app")) return;
if (app.constructor.name === "SWPFSheet") return; // Extended from ActorSheet
if (app.constructor.name.startsWith("SWPF")) return; // SWPFCompendiumTOC, SWPFSheet
const theme = game.settings.get("pf2e-dorako-ui", "theme.application-theme");
if (theme === "no-theme") {
console.debug(`${MODULE_NAME} | render${app.constructor.name} | theme: ${theme} => do not add .dorako-ui`);
Expand Down
4 changes: 2 additions & 2 deletions modules/misc-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ for (const application of ["Application", ...baseThemePf2eSheets]) {
let isDark = html[0].classList.contains("dark-theme");
let symbol = isDark ? "fa-sun" : "fa-moon";
let openBtn = $(
`<a class="dark-theme-toggle" alt="Toggle dark theme" data-tooltip="Dark theme" data-tooltip-direction="UP"">
`<a class="header-button dark-theme-toggle" alt="Toggle dark theme" data-tooltip="Dark theme" data-tooltip-direction="UP"">
<i class="fas fa-fw ${symbol}"></i>
</a>`
);
Expand All @@ -192,7 +192,7 @@ for (const application of ["Application", ...baseThemePf2eSheets]) {
let symbol = isDorako ? "fa-thin" : "fas";

let openBtn = $(
`<a class="dorako-ui-toggle" alt="Toggle Dorako UI" data-tooltip="Dorako UI" data-tooltip-direction="UP">
`<a class="header-button dorako-ui-toggle" alt="Toggle Dorako UI" data-tooltip="Dorako UI" data-tooltip-direction="UP">
<i class="fa-fw ${symbol} fa-d"></i>
</a>`
);
Expand Down
5 changes: 5 additions & 0 deletions sass/module/_swade.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
column-rule: 4px double var(--color-underline-header);
}

.swpf-compendium .window-header a.header-button {
color: var(--color-text-dark-primary);
font-weight: bold;
}

body.system-swade {
--primary-dark: #5c0b07;
--primary: #8c160f;
Expand Down
5 changes: 5 additions & 0 deletions styles/module-support.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/module-support.css.map

Large diffs are not rendered by default.

0 comments on commit 0576121

Please sign in to comment.