Skip to content

Commit

Permalink
Add Yandex icon for browser lists
Browse files Browse the repository at this point in the history
  • Loading branch information
spylogsster committed Jan 13, 2023
1 parent a406ca7 commit 577a60b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import FirefoxSVG from '../svg/browser-icons/firefox'
import OperaSVG from '../svg/browser-icons/opera'
import SafariSVG from '../svg/browser-icons/safari'
import VivaldiSVG from '../svg/browser-icons/vivaldi'
import YandexSVG from '../svg/browser-icons/yandex'

interface BrowserItemButtonProps {
browserName: string
Expand All @@ -37,7 +38,8 @@ const browserIcons = {
'Mozilla Firefox': <FirefoxSVG />,
'Opera': <OperaSVG />,
'Safari': <SafariSVG />,
'Vivaldi': <VivaldiSVG />
'Vivaldi': <VivaldiSVG />,
'Yandex': <YandexSVG />
}

function BrowserItemButton (props: BrowserItemButtonProps) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) 2023 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at https://mozilla.org/MPL/2.0/.

import * as React from 'react'

const SvgComponent = (props: any) => (
<svg viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fillRule="evenodd" clipRule="evenodd" d="M228 128C228 183.267 183.2 228 128 228C72.8 228 28 183.2 28 128C28 72.8 72.8 28 128 28C183.2 28 228 72.8 228 128Z" fill="url(#paint0_linear_5664_17756)"/>
<path fillRule="evenodd" clipRule="evenodd" d="M219.667 128C219.667 178.619 178.619 219.667 128 219.667C77.3812 219.667 36.3336 178.619 36.3336 128C36.3336 77.3811 77.3812 36.3335 128 36.3335C178.619 36.3335 219.667 77.3811 219.667 128Z" fill="white"/>
<path fillRule="evenodd" clipRule="evenodd" d="M192.4 86.7335L138.867 139.067V204.133C138.867 205.333 133.8 206.267 128 206.333C122.467 206.267 117.133 205.333 117.133 204.133V139.067L63.6001 86.7335C62.7334 85.8668 65.4668 81.8001 69.6668 77.6001C73.8668 73.4001 78.0001 70.6668 78.8001 71.5335L127.867 119.4L176.933 71.5335C177.8 70.6668 181.867 73.4001 186.067 77.6001C190.333 81.8001 193.133 85.8668 192.4 86.7335Z" fill="#EC1C24"/>
<defs>
<linearGradient id="paint0_linear_5664_17756" x1="128.018" y1="-5.33653" x2="128.018" y2="165.33" gradientUnits="userSpaceOnUse">
<stop stopColor="#EDEDEE"/>
<stop offset="1" stopColor="#EDEDEE"/>
</linearGradient>
</defs>
</svg>
)

export default SvgComponent
3 changes: 2 additions & 1 deletion components/brave_welcome_ui/state/component_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export enum BrowserType {
Mozilla_Firefox = 'Mozilla Firefox',
Microsoft_Edge = 'Microsoft Edge',
Vivaldi = 'Vivaldi',
Opera = 'Opera'
Opera = 'Opera',
Yandex = 'Yandex'
}

export interface Scenes {
Expand Down

0 comments on commit 577a60b

Please sign in to comment.