Skip to content

Commit

Permalink
fix: change casper wallet logo when dark mode (#1035)
Browse files Browse the repository at this point in the history
* change casper wallet logo when dark mode

* update icons
  • Loading branch information
ost-ptk authored Sep 4, 2024
1 parent 7a0e5a5 commit b79ff38
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/apps/popup/pages/navigation-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
selectVaultCountsOfAccounts
} from '@background/redux/vault/selectors';

import { useIsDarkMode } from '@hooks/use-is-dark-mode';
import { useWindowManager } from '@hooks/use-window-manager';

import {
Expand Down Expand Up @@ -89,6 +90,7 @@ interface MenuGroup {
export function NavigationMenuPageContent() {
const navigate = useTypedNavigate();
const { t } = useTranslation();
const isDarkMode = useIsDarkMode();

const timeoutDurationSetting = useSelector(selectTimeoutDurationSetting);
const countOfConnectedSites = useSelector(selectCountOfConnectedSites);
Expand Down Expand Up @@ -396,7 +398,11 @@ export function NavigationMenuPageContent() {
<Tile>
<LogoContainer>
<SvgIcon
src="assets/icons/casper-wallet-text-logo.svg"
src={
isDarkMode
? 'assets/icons/casper-wallet-text-logo-dark.svg'
: 'assets/icons/casper-wallet-text-logo-light.svg'
}
width={129}
height={32}
/>
Expand Down
11 changes: 11 additions & 0 deletions src/assets/icons/casper-wallet-text-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/libs/layout/layout-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function LayoutTab({
<Container>
<AbsoluteCenteredContainer>
<SvgIcon
src="assets/icons/casper-wallet-text-logo.svg"
src="assets/icons/casper-wallet-text-logo-light.svg"
width={164}
height={40}
/>
Expand Down

0 comments on commit b79ff38

Please sign in to comment.