From 759d4615c50038fca905f958579247520c4ebb22 Mon Sep 17 00:00:00 2001 From: Dorako Date: Thu, 12 Sep 2024 21:54:14 +0200 Subject: [PATCH] 3.5.17 --- CHANGELOG.md | 5 +++++ esmodules/consts.js | 2 +- esmodules/message-hooks.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab7e71..a10916f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 3.5.17 + +- (Fix) Fixed an issue where the CRB style colored chat message headers would always use light text. +- (Refinement) Excluded PF2eHudItemPopup from theming, as it implements custom styling. + # 3.5.16 - (Refinement) Removed some logspam. diff --git a/esmodules/consts.js b/esmodules/consts.js index 49aa8f6..820f2a9 100644 --- a/esmodules/consts.js +++ b/esmodules/consts.js @@ -27,4 +27,4 @@ export const unlimitedScopeApplications = ["PlaylistDirectory"]; /* ----------------------------------------- */ /* Excluded */ /* ----------------------------------------- */ -export const excludedApplications = ["ItemAnimationsApp","ActorAnimationsApp","AnimationHistoryApp", "UserAnimationsApp", "WorldAnimationsApp","JSONEditorApp", "VCEChatLog", "AutorecMenuApp","GmScreenApplicationDrawer","MixerApp","EnhancedJournal","PartyOverviewApp","KingdomBuilder","ChatLogPF2e","ItemMenuApp","LevelsUI", "SpecialEffectsManagement", "ParticleEffectsManagement", "FilterEffectsManagementConfig"]; // \ No newline at end of file +export const excludedApplications = ["PF2eHudItemPopup","ItemAnimationsApp","ActorAnimationsApp","AnimationHistoryApp", "UserAnimationsApp", "WorldAnimationsApp","JSONEditorApp", "VCEChatLog", "AutorecMenuApp","GmScreenApplicationDrawer","MixerApp","EnhancedJournal","PartyOverviewApp","KingdomBuilder","ChatLogPF2e","ItemMenuApp","LevelsUI", "SpecialEffectsManagement", "ParticleEffectsManagement", "FilterEffectsManagementConfig"]; // \ No newline at end of file diff --git a/esmodules/message-hooks.js b/esmodules/message-hooks.js index 5e54294..272913b 100644 --- a/esmodules/message-hooks.js +++ b/esmodules/message-hooks.js @@ -88,7 +88,7 @@ function calcHeaderTextColor(headerColor) { var b = headerColor.b; var yiq = (r * 299 + g * 587 + b * 114) / 1000; - if (yiq >= 180) { + if (yiq >= 0.8) { return "dark"; } else { return "light";