Update Saleor icons and favicons (#3509)
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 837 B |
|
@ -1,18 +1,4 @@
|
||||||
<?xml version="1.0" standalone="no"?>
|
<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
<rect x="0.97789" y="0.97789" width="43.0442" height="43.0442" rx="9" fill="#161616"/>
|
||||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4424 18.2073L8.20258 26.7927H28.5576L36.7974 18.2073H16.4424Z" fill="white"/>
|
||||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
width="513.000000pt" height="513.000000pt" viewBox="0 0 513.000000 513.000000"
|
|
||||||
preserveAspectRatio="xMidYMid meet">
|
|
||||||
<metadata>
|
|
||||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
|
||||||
</metadata>
|
|
||||||
<g transform="translate(0.000000,513.000000) scale(0.100000,-0.100000)"
|
|
||||||
fill="#000000" stroke="none">
|
|
||||||
<path d="M430 5123 c-197 -33 -378 -206 -419 -401 -8 -38 -11 -655 -11 -2161
|
|
||||||
0 -1883 2 -2114 16 -2162 56 -195 221 -349 406 -379 42 -6 765 -10 2158 -10
|
|
||||||
2313 0 2153 -4 2277 63 74 40 171 136 210 210 67 124 63 -36 63 2293 0 2293 3
|
|
||||||
2150 -56 2271 -38 76 -151 189 -226 226 -123 59 25 56 -2278 55 -1163 0 -2126
|
|
||||||
-3 -2140 -5z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 321 B |
BIN
assets/images/sidebar-deafult-logo-darkMode.png
Normal file
After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 955 B |
|
@ -1,12 +1,20 @@
|
||||||
|
import sideBarDefaultLogoDarkMode from "@assets/images/sidebar-deafult-logo-darkMode.png";
|
||||||
import sideBarDefaultLogo from "@assets/images/sidebar-default-logo.png";
|
import sideBarDefaultLogo from "@assets/images/sidebar-default-logo.png";
|
||||||
|
import { useLegacyThemeHandler } from "@dashboard/components/Sidebar/user/Controls";
|
||||||
import { Avatar, Box, Text } from "@saleor/macaw-ui/next";
|
import { Avatar, Box, Text } from "@saleor/macaw-ui/next";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export const MountingPoint = () => (
|
export const MountingPoint = () => {
|
||||||
|
const { theme } = useLegacyThemeHandler();
|
||||||
|
const logo =
|
||||||
|
theme === "defaultLight" ? sideBarDefaultLogo : sideBarDefaultLogoDarkMode;
|
||||||
|
|
||||||
|
return (
|
||||||
<Box display="flex" gap={6} paddingX={7} paddingY={8} alignItems="center">
|
<Box display="flex" gap={6} paddingX={7} paddingY={8} alignItems="center">
|
||||||
<Avatar.Store src={sideBarDefaultLogo} scheme="decorative2" size="small" />
|
<Avatar.Store src={logo} scheme="decorative2" size="small" />
|
||||||
<Text variant="bodyStrong" size="small">
|
<Text variant="bodyStrong" size="small">
|
||||||
Saleor Dashboard
|
Saleor Dashboard
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { ThemeSwitcher } from "./ThemeSwitcher";
|
import { ThemeSwitcher } from "./ThemeSwitcher";
|
||||||
|
|
||||||
const useLegacyThemeHandler = () => {
|
export const useLegacyThemeHandler = () => {
|
||||||
const { theme, setTheme } = useTheme();
|
const { theme, setTheme } = useTheme();
|
||||||
const { setTheme: setLegacyTheme } = useLegacyTheme();
|
const { setTheme: setLegacyTheme } = useLegacyTheme();
|
||||||
|
|
||||||
|
|