Skip to content

Commit

Permalink
2.11.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Nov 6, 2023
1 parent 519216d commit f616eb0
Show file tree
Hide file tree
Showing 10 changed files with 189 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.11.15

- (New) Added support for Monk's PF2e Encounter Aftermath module.
- (Fix) Fixed an issue where RK chat messages produced by ITT were illegible in Foundry2 theme.

# 2.11.14

- (Maintenance) Update theming of spellcasting inputs and selects for NPC's for Foundry 2 to be compatible with recent system versions.
Expand Down
9 changes: 9 additions & 0 deletions esmodules/foundry2-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ for (const app of ["CharacterSheetPF2e", "VehicleSheetPF2e", "HUD"]) {
Hooks.on("render" + app, (app, html, data) => {
const theme = game.settings.get("pf2e-dorako-ui", "theme.application-theme");
if (theme !== "foundry2-theme") return;
const excludeString =
game.settings.get("pf2e-dorako-ui", "customization.excluded-applications") + ", VehicleSheetPF2e, HUD";
const excludeList = excludeString.split(/[\s,]+/);
if (excludeList.includes(app.constructor.name)) {
console.debug(
`${MODULE_NAME} | render${app.constructor.name} | is included in excluded applications string ${excludeString} => do not add .foundry2`
);
return;
}
console.debug(`${MODULE_NAME} | render${app.constructor.name} | theme: ${theme} => add .foundry2-pc`);
html.addClass("foundry2-pc");
});
Expand Down
1 change: 1 addition & 0 deletions sass/dorako-theme/pf2e-system/_actor-sheet-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
color: var(--tertiary-dark);
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity .empty .name,
&.sheet.party [data-tab="exploration"] .activities .member-activity .empty .name,
&.sheet.party nav.sub-nav a.active,
&.sheet.party nav.sub-nav .tab.active {
Expand Down
2 changes: 2 additions & 0 deletions sass/dorako-theme/pf2e-system/_actor-sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions ol.actions-list li.strike .item-summary,
&.sheet.party [data-tab=overview] .summary,
&.sheet.party [data-tab=exploration] .activities .member-activity,
&.sheet.party [data-tab=aftermath] .activities .member-activity,
&.actor.sheet.character .crb-style .sheet-body .sheet-content .tab.character .attributes .attribute h3.modifier,
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions .actions-container .actions-tabs-wrapper .actions-panels ol.actions-list li.action.expanded .item-summary,
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions .actions-container .actions-tabs-wrapper .actions-panels .actions-options,
Expand All @@ -206,6 +207,7 @@
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions ol.actions-list li.strike .item-summary,
&.sheet.party [data-tab=overview] .summary,
&.sheet.party [data-tab=exploration] .activities .member-activity,
&.sheet.party [data-tab=aftermath] .activities .member-activity,
&.actor.sheet.character .crb-style .sheet-body .sheet-content .tab.character .attributes .attribute h3.modifier,
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions .actions-container .actions-tabs-wrapper .actions-panels ol.actions-list li.action.expanded .item-summary,
&.actor.sheet .crb-style .sheet-body .sheet-content .tab.actions .actions-container .actions-tabs-wrapper .actions-panels .actions-options,
Expand Down
13 changes: 13 additions & 0 deletions sass/foundry2-theme/pf2e-system/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@
font-size: x-large;
line-height: 1.3rem;
color: var(--color-light-2);

&.pf2-icon {
font-family: "Pathfinder2eActions", sans-serif;
flex: 0;
margin-right: 5px;
}
}

.pf2e.chat-card .card-footer span {
border-right: 1px solid var(--color-cool-4);
&:last-child {
border: unset;
}
}

.table-draw .table-results .table-result img.result-image {
Expand Down
18 changes: 18 additions & 0 deletions sass/foundry2-theme/pf2e-system/_party-sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,45 @@
color: var(--color-warm-1);
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity .empty .name,
&.sheet.party [data-tab="exploration"] .activities .member-activity .empty .name {
color: var(--color-light-2);
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity,
&.sheet.party [data-tab="exploration"] .activities .member-activity {
background-color: var(--color-warm-4);
}

&.sheet.party [data-tab="aftermath"] .member > .data header .hero-points .empty,
&.sheet.party [data-tab="overview"] .member > .data header .hero-points .empty {
border: 2px dashed var(--color-warm-2);
}

&.sheet.party [data-tab="aftermath"] .member > .data header .name,
&.sheet.party [data-tab="overview"] .member > .data header .name {
color: var(--color-light-2);
}

&.sheet.party header.content-header .buttons {
gap: 5px;
button {
@include f2-button-warm;
}
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity .empty .icon,
&.sheet.party [data-tab="exploration"] .activities .member-activity .empty .icon {
background: var(--color-warm-5);
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity .activity-entries .activity .activity-name {
overflow: unset;
}

&.sheet.party [data-tab="aftermath"] .activities .member-activity .activity-entries .activity .icon img {
@include f2-app;
filter: unset;
border-color: var(--color-warm-2);
}
}
9 changes: 9 additions & 0 deletions sass/module-support/_monks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@
.monks-tokenbar .sheet .items-list .item {
border: unset;
}
.monks-tokenbar:not(.editstats) .sheet input[type="text"],
.monks-tokenbar .sheet input[type="number"] {
@include f2-input;
}
&#assignexperience .sheet .sheet-navigation {
margin: unset;
font-family: var(--sans-serif);
font-weight: unset;
}
}

/* ----------------------------------------- */
Expand Down
23 changes: 23 additions & 0 deletions sass/module-support/_pf2e-idle-hud.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,29 @@
/* Foundry 2 */
/* ----------------------------------------- */

.foundry2 {
&.chat-message.message .pf2e-token-hud .rk {
--text-dark: var(--color-light-2);
--rarity-common: #e1d8cf;
--rarity-uncommon: #c45500;
--rarity-rare: #5362ff;
--rarity-unique: #e127e1;
--color-rarity-common: #e1d8cf;
--color-rarity-uncommon: #c45500;
--color-rarity-rare: #5362ff;
--color-rarity-unique: #e127e1;
--color-rank-0: #a6a6a6;
--color-rank-1: dodgerblue; // Symon recommended
--color-rank-2: #bf4fdb;
--color-rank-3: #cf931d;
--color-rank-4: red; // Symon recommended
background: repeating-linear-gradient(
color-mix(in srgb, var(--color-cool-3) 20%, transparent) 0 var(--row-height),
transparent var(--row-height) calc(var(--row-height) * 2)
);
}
}

.foundry2-pc {
&#pf2e-token-hud {
// --primary: var(--color-warm-2);
Expand Down
Loading

0 comments on commit f616eb0

Please sign in to comment.