From 304ac1e3f117bdff85afddfdf33a533720eeb527 Mon Sep 17 00:00:00 2001 From: Kento Nishi Date: Wed, 26 Jul 2023 17:12:54 -0400 Subject: [PATCH] blue superchat fix --- src/components/PaidMessage.svelte | 8 +++++--- src/components/changelog/Changelog.svelte | 11 +++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/PaidMessage.svelte b/src/components/PaidMessage.svelte index c55e4104..65f339f0 100644 --- a/src/components/PaidMessage.svelte +++ b/src/components/PaidMessage.svelte @@ -26,6 +26,10 @@ $: if (!paid) { console.error('Not a paid message', { message }); } + const darkEval = () => { + if (!('superChat' in message)) return undefined; + return isDarkColor(`#${message.superChat?.headerTextColor}`) ? Theme.LIGHT : Theme.DARK; + }; {#if paid} @@ -52,9 +56,7 @@ {#if message.message.length > 0}
- +
{/if} diff --git a/src/components/changelog/Changelog.svelte b/src/components/changelog/Changelog.svelte index c71ab7e3..5a38142e 100644 --- a/src/components/changelog/Changelog.svelte +++ b/src/components/changelog/Changelog.svelte @@ -8,18 +8,21 @@