From 9200f9afadcc7a3aab6483d9ebcdd86ed0bfbd75 Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Thu, 21 Nov 2024 21:14:01 +0200 Subject: [PATCH] provide light color logo --- .../assets/images/livecodes-text-logo-nowrap-light.svg | 1 + src/livecodes/core.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/livecodes/assets/images/livecodes-text-logo-nowrap-light.svg diff --git a/src/livecodes/assets/images/livecodes-text-logo-nowrap-light.svg b/src/livecodes/assets/images/livecodes-text-logo-nowrap-light.svg new file mode 100644 index 000000000..883789190 --- /dev/null +++ b/src/livecodes/assets/images/livecodes-text-logo-nowrap-light.svg @@ -0,0 +1 @@ +LiveCodes diff --git a/src/livecodes/core.ts b/src/livecodes/core.ts index 71eee0b5b..6a44e3212 100644 --- a/src/livecodes/core.ts +++ b/src/livecodes/core.ts @@ -3590,7 +3590,12 @@ const handleAbout = () => { div.innerHTML = aboutScreen .replace(/{{COMMIT_URL}}/g, `${repoUrl}/commit/${versions.commitSHA}`) .replace(/{{APP_URL}}/g, versions.appUrl) - .replace(/{{SDK_URL}}/g, versions.sdkUrl); + .replace(/{{SDK_URL}}/g, versions.sdkUrl) + .replace('livecodes-text-logo-nowrap.svg', () => + getConfig().theme === 'dark' + ? 'livecodes-text-logo-nowrap-light.svg' + : 'livecodes-text-logo-nowrap.svg', + ); const aboutContainer = div.firstChild as HTMLElement; modal.show(aboutContainer); };