Skip to content

Commit

Permalink
3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Jun 10, 2024
1 parent e43708e commit 76d767b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 34 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 3.5.1

- (Fix) Fixed some console spam.
- (Fix) Fixed an issue where take-damage buttons were hidden.

# 3.5.0

- (New) Added support for FVTT v12 and ApplicationV2. This is a breaking change and as such only supports V12.
Expand Down
8 changes: 5 additions & 3 deletions esmodules/ui-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,14 @@ Hooks.on("renderApplication", (app, html, data) => {
app.element[0].dataset.colorScheme = colorScheme;
app.element[0].dataset.dorakoUiScope = "unlimited";

const duiScope = app.data.duiScope;
const duiScope = app.data?.duiScope;
if (duiScope) {
app.element[0].dataset.dorakoUiScope = duiScope;
}
for (const duiClass of app.data.duiClasses) {
html.addClass(duiClass);
if (app.data?.duiClasses) {
for (const duiClass of app.data?.duiClasses) {
html.addClass(duiClass);
}
}
});

Expand Down
14 changes: 7 additions & 7 deletions sass/module-support/_pf2e-hud.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
@include dui-app;
}

&#pf2e-hud-persistent-left,
&#pf2e-hud-persistent {
opacity: 50%;
&:hover {
opacity: 100%;
}
}
// &#pf2e-hud-persistent-left,
// &#pf2e-hud-persistent {
// opacity: 50%;
// &:hover {
// opacity: 100%;
// }
// }
}

.game #interface:has(#pf2e-hud-tracker) #sidebar {
Expand Down
21 changes: 10 additions & 11 deletions sass/ui-theme/pf2e-system/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,26 +190,25 @@
[data-theme^="crb"][data-color-scheme="light"],
[data-theme^="dnd5e2"][data-color-scheme="light"]
) {
.message-content {
.target-damage-application,
.damage-application {
// .message-content {
.target-damage-application,
.damage-application {
img {
filter: invert(1) brightness(0.7) sepia(1) grayscale(0.7) drop-shadow(0px 1px 1px black);
}
button:hover {
img {
filter: invert(1) brightness(0.7) sepia(1) grayscale(0.7) drop-shadow(0px 1px 1px black);
}
button:hover {
img {
filter: invert(1) drop-shadow(0px 1px 1px black);
}
filter: invert(1) drop-shadow(0px 1px 1px black);
}
}
}
// }
}

.message[data-theme] {
// .message-content {
.target-damage-application,
.damage-application {
display: none;
gap: 3px;
margin-top: 3px;
text-rendering: geometricPrecision;
Expand All @@ -223,7 +222,7 @@
}
.fa-heart-broken {
position: relative;
-webkit-text-fill-color: unset;
-webkit-text-fill-color: unset !important;

&::before {
opacity: 0.5;
Expand Down
17 changes: 5 additions & 12 deletions styles/dorako-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -2009,12 +2009,6 @@ body.compact-ui #navigation[data-theme] .monks-scene-navigation #nav-toggle {
box-shadow: var(--box-shadow);
color: var(--text-color-3);
}
[data-theme]#pf2e-hud-persistent-left, [data-theme]#pf2e-hud-persistent {
opacity: 50%;
}
[data-theme]#pf2e-hud-persistent-left:hover, [data-theme]#pf2e-hud-persistent:hover {
opacity: 100%;
}

.game #interface:has(#pf2e-hud-tracker) #sidebar {
box-shadow: unset;
Expand Down Expand Up @@ -8631,21 +8625,20 @@ nav#controls[data-theme] ol.control-tools > li.toggle:disabled {
}

.message[data-theme]:not([data-theme^=crb][data-color-scheme=light],
[data-theme^=dnd5e2][data-color-scheme=light]) .message-content .target-damage-application img,
[data-theme^=dnd5e2][data-color-scheme=light]) .target-damage-application img,
.message[data-theme]:not([data-theme^=crb][data-color-scheme=light],
[data-theme^=dnd5e2][data-color-scheme=light]) .message-content .damage-application img {
[data-theme^=dnd5e2][data-color-scheme=light]) .damage-application img {
filter: invert(1) brightness(0.7) sepia(1) grayscale(0.7) drop-shadow(0px 1px 1px black);
}
.message[data-theme]:not([data-theme^=crb][data-color-scheme=light],
[data-theme^=dnd5e2][data-color-scheme=light]) .message-content .target-damage-application button:hover img,
[data-theme^=dnd5e2][data-color-scheme=light]) .target-damage-application button:hover img,
.message[data-theme]:not([data-theme^=crb][data-color-scheme=light],
[data-theme^=dnd5e2][data-color-scheme=light]) .message-content .damage-application button:hover img {
[data-theme^=dnd5e2][data-color-scheme=light]) .damage-application button:hover img {
filter: invert(1) drop-shadow(0px 1px 1px black);
}

.message[data-theme] .target-damage-application,
.message[data-theme] .damage-application {
display: none;
gap: 3px;
margin-top: 3px;
text-rendering: geometricPrecision;
Expand All @@ -8661,7 +8654,7 @@ nav#controls[data-theme] ol.control-tools > li.toggle:disabled {
.message[data-theme] .target-damage-application button.half-damage .fa-heart-broken,
.message[data-theme] .damage-application button.half-damage .fa-heart-broken {
position: relative;
-webkit-text-fill-color: unset;
-webkit-text-fill-color: unset !important;
}
.message[data-theme] .target-damage-application button.half-damage .fa-heart-broken::before,
.message[data-theme] .damage-application button.half-damage .fa-heart-broken::before {
Expand Down
2 changes: 1 addition & 1 deletion styles/dorako-ui.css.map

Large diffs are not rendered by default.

0 comments on commit 76d767b

Please sign in to comment.