Update Saleor icons and favicons (#3509)

This commit is contained in:
Timur Carpeev 2023-04-20 09:40:29 +02:00 committed by GitHub
parent fc8f4be4e9
commit c5f476152d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 20 additions and 26 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 B

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 837 B

View file

@ -1,18 +1,4 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<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 width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.97789" y="0.97789" width="43.0442" height="43.0442" rx="9" fill="#161616"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.4424 18.2073L8.20258 26.7927H28.5576L36.7974 18.2073H16.4424Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 838 B

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 955 B

View file

@ -1,12 +1,20 @@
import sideBarDefaultLogoDarkMode from "@assets/images/sidebar-deafult-logo-darkMode.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 React from "react";
export const MountingPoint = () => (
<Box display="flex" gap={6} paddingX={7} paddingY={8} alignItems="center">
<Avatar.Store src={sideBarDefaultLogo} scheme="decorative2" size="small" />
<Text variant="bodyStrong" size="small">
Saleor Dashboard
</Text>
</Box>
);
export const MountingPoint = () => {
const { theme } = useLegacyThemeHandler();
const logo =
theme === "defaultLight" ? sideBarDefaultLogo : sideBarDefaultLogoDarkMode;
return (
<Box display="flex" gap={6} paddingX={7} paddingY={8} alignItems="center">
<Avatar.Store src={logo} scheme="decorative2" size="small" />
<Text variant="bodyStrong" size="small">
Saleor Dashboard
</Text>
</Box>
);
};

View file

@ -17,7 +17,7 @@ import { Link } from "react-router-dom";
import { ThemeSwitcher } from "./ThemeSwitcher";
const useLegacyThemeHandler = () => {
export const useLegacyThemeHandler = () => {
const { theme, setTheme } = useTheme();
const { setTheme: setLegacyTheme } = useLegacyTheme();