From 2dbc7419f6c451a8dd1a8ea320687336b1c0aa2a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 10 May 2024 07:22:37 -0500 Subject: [PATCH] Swap bell icon, improve alignment and size --- assets/icons/bell_filled_corner0_rounded.svg | 1 + assets/icons/bell_stroke2_corner0_rounded.svg | 1 + src/components/icons/Bell.tsx | 9 +++++++++ src/view/shell/bottom-bar/BottomBar.tsx | 18 +++++++++--------- src/view/shell/bottom-bar/BottomBarStyles.tsx | 9 ++++----- src/view/shell/bottom-bar/BottomBarWeb.tsx | 12 ++++++------ src/view/shell/desktop/LeftNav.tsx | 6 +++--- 7 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 assets/icons/bell_filled_corner0_rounded.svg create mode 100644 assets/icons/bell_stroke2_corner0_rounded.svg create mode 100644 src/components/icons/Bell.tsx diff --git a/assets/icons/bell_filled_corner0_rounded.svg b/assets/icons/bell_filled_corner0_rounded.svg new file mode 100644 index 0000000000..3f21b7e9bd --- /dev/null +++ b/assets/icons/bell_filled_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/bell_stroke2_corner0_rounded.svg b/assets/icons/bell_stroke2_corner0_rounded.svg new file mode 100644 index 0000000000..a31f1bd152 --- /dev/null +++ b/assets/icons/bell_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/src/components/icons/Bell.tsx b/src/components/icons/Bell.tsx new file mode 100644 index 0000000000..ede148ec15 --- /dev/null +++ b/src/components/icons/Bell.tsx @@ -0,0 +1,9 @@ +import {createSinglePathSVG} from './TEMPLATE' + +export const Bell_Stroke2_Corner0_Rounded = createSinglePathSVG({ + path: 'M4.216 8.815a7.853 7.853 0 0 1 15.568 0l1.207 9.053A1 1 0 0 1 20 19h-3.354c-.904 1.748-2.607 3-4.646 3-2.039 0-3.742-1.252-4.646-3H4a1 1 0 0 1-.991-1.132l1.207-9.053ZM9.778 19c.61.637 1.399 1 2.222 1s1.613-.363 2.222-1H9.778ZM12 4a5.853 5.853 0 0 0-5.802 5.08L5.142 17h13.716l-1.056-7.92A5.853 5.853 0 0 0 12 4Z', +}) + +export const Bell_Filled_Corner0_Rounded = createSinglePathSVG({ + path: 'M12 2a7.853 7.853 0 0 0-7.784 6.815l-1.207 9.053A1 1 0 0 0 4 19h3.354c.904 1.748 2.607 3 4.646 3 2.039 0 3.742-1.252 4.646-3H20a1 1 0 0 0 .991-1.132l-1.207-9.053A7.853 7.853 0 0 0 12 2Zm2.222 17H9.778c.61.637 1.399 1 2.222 1s1.613-.363 2.222-1Z', +}) diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index bbecb2e0aa..bcaaf34178 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -33,9 +33,9 @@ import {Logotype} from '#/view/icons/Logotype' import {useDialogControl} from '#/components/Dialog' import {SwitchAccountDialog} from '#/components/dialogs/SwitchAccount' import { - Bell2_Filled_Corner0_Rounded as BellFilled, - Bell2_Stroke2_Corner0_Rounded as Bell, -} from '#/components/icons/Bell2' + Bell_Filled_Corner0_Rounded as BellFilled, + Bell_Stroke2_Corner0_Rounded as Bell, +} from '#/components/icons/Bell' import { HomeOpen_Filled_Corner0_Rounded as HomeFilled, HomeOpen_Stoke2_Corner0_Rounded as Home, @@ -147,12 +147,12 @@ export function BottomBar({navigation}: BottomTabBarProps) { icon={ isAtHome ? ( ) : ( ) @@ -188,12 +188,12 @@ export function BottomBar({navigation}: BottomTabBarProps) { icon={ isAtMessages ? ( ) : ( ) @@ -251,7 +251,7 @@ export function BottomBar({navigation}: BottomTabBarProps) { ]}> ) @@ -107,7 +107,7 @@ export function BottomBarWeb() { const Icon = isActive ? MessageFilled : Message return ( ) @@ -139,7 +139,7 @@ export function BottomBarWeb() { const Icon = isActive ? UserCircleFilled : UserCircle return ( ) diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index aff6fd736f..b1f58afedc 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -34,9 +34,9 @@ import {PressableWithHover} from 'view/com/util/PressableWithHover' import {Text} from 'view/com/util/text/Text' import {UserAvatar} from 'view/com/util/UserAvatar' import { - Bell2_Filled_Corner0_Rounded as BellFilled, - Bell2_Stroke2_Corner0_Rounded as Bell, -} from '#/components/icons/Bell2' + Bell_Filled_Corner0_Rounded as BellFilled, + Bell_Stroke2_Corner0_Rounded as Bell, +} from '#/components/icons/Bell' import { BulletList_Filled_Corner0_Rounded as ListFilled, BulletList_Stroke2_Corner0_Rounded as List,