Skip to content

Commit da2b7a4

Browse files
authored
Merge pull request #353 from Pseudo-Lab/fix/lightmode-symbol
fix: light mode Pseudo-Lab symbol
2 parents f306674 + 4fd39b5 commit da2b7a4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

platform/frontend/main.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,17 @@ document.addEventListener('keydown', (e) => {
368368
const themeToggle = document.getElementById('theme-toggle');
369369
const body = document.body;
370370
const brandLogo = document.querySelector('.brand-logo');
371+
const footerPlLogo = document.querySelector('.footer-social .social-link[title="Official site"] img');
371372

372373
function applyTheme(isLight) {
373374
if (isLight) {
374375
body.classList.add('light-mode');
375376
if (brandLogo) brandLogo.src = '/logo_symbol_dark.webp';
377+
if (footerPlLogo) footerPlLogo.src = '/pl_symbol.webp';
376378
} else {
377379
body.classList.remove('light-mode');
378380
if (brandLogo) brandLogo.src = '/logo_symbol_light.webp';
381+
if (footerPlLogo) footerPlLogo.src = '/pl_symbol_white.webp';
379382
}
380383
}
381384

@@ -394,10 +397,14 @@ if (themeToggle) {
394397
body.classList.toggle('light-mode');
395398
const isLight = body.classList.contains('light-mode');
396399
localStorage.setItem('theme', isLight ? 'light' : 'dark');
397-
398-
// Update Logo
399-
if (brandLogo) {
400-
brandLogo.src = isLight ? '/logo_symbol_dark.webp' : '/logo_symbol_light.webp';
400+
401+
// Update Logos
402+
if (isLight) {
403+
if (brandLogo) brandLogo.src = '/logo_symbol_dark.webp';
404+
if (footerPlLogo) footerPlLogo.src = '/pl_symbol.webp';
405+
} else {
406+
if (brandLogo) brandLogo.src = '/logo_symbol_light.webp';
407+
if (footerPlLogo) footerPlLogo.src = '/pl_symbol_white.webp';
401408
}
402409
});
403410
} else {

0 commit comments

Comments
 (0)