Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change copy link icons from ArrowOutOfBox to Link #7203

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/icons/Link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {createSinglePathSVG} from './TEMPLATE'

export const Link_Stroke2_Corner0_Rounded = createSinglePathSVG({
path: 'M 12.3507 16.7886 l -3.249 3.2481 c -2.0844 2.0835 -5.4567 2.0835 -7.5402 0 c -1.008 -1.0062 -1.5615 -2.3454 -1.5615 -3.7692 c 0 -1.4238 0.5535 -2.763 1.5606 -3.7701 l 4.3794 -4.3785 c 2.1195 -2.1195 5.5026 -2.0358 7.5393 0 c 0.4077 0.4077 0.729 0.8757 0.9801 1.3743 l -1.4337 1.4328 c -0.162 -0.5517 -0.45 -1.0701 -0.8676 -1.4868 c -1.3032 -1.3032 -3.537 -1.359 -4.8951 -0.0009 l -0.0009 0.0018 l -4.3803 4.3785 c -1.35 1.3491 -1.35 3.5469 0 4.896 c 1.3653 1.3653 3.5622 1.3392 4.8978 0 l 2.1825 -2.1816 c 0.8937 0.2556 1.6119 0.3015 2.3886 0.2556 z m 0.1449 -15.2262 l -3.2166 3.2184 c 0.7623 -0.045 1.4895 0 2.3877 0.2547 l 2.1537 -2.1501 c 1.3482 -1.3518 3.546 -1.35 4.896 -0.0009 c 1.3653 1.3662 1.3374 3.5631 0 4.8978 l -4.3479 4.3479 l -0.0027 0.0018 c -1.2942 1.2933 -3.4974 1.3968 -4.8951 -0.0018 c -0.4257 -0.4266 -0.7065 -0.9378 -0.8604 -1.4787 l -0.0756 0.0612 l -1.3653 1.3635 c 0.252 0.5004 0.5715 0.9675 0.9792 1.3752 c 2.0205 2.0205 5.4036 2.1366 7.5402 0 l 4.3488 -4.3479 c 2.0826 -2.0844 2.0844 -5.4558 -0.0009 -7.5393 c -2.0853 -2.0889 -5.4603 -2.0817 -7.5411 -0.0018 z',
})
4 changes: 2 additions & 2 deletions src/view/com/util/forms/PostDropdownBtnMenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import {
usePrefetchPostInteractionSettings,
} from '#/components/dialogs/PostInteractionSettingsDialog'
import {SendViaChatDialog} from '#/components/dms/dialogs/ShareViaChatDialog'
import {ArrowOutOfBox_Stroke2_Corner0_Rounded as Share} from '#/components/icons/ArrowOutOfBox'
import {BubbleQuestion_Stroke2_Corner0_Rounded as Translate} from '#/components/icons/Bubble'
import {Clipboard_Stroke2_Corner2_Rounded as ClipboardIcon} from '#/components/icons/Clipboard'
import {CodeBrackets_Stroke2_Corner0_Rounded as CodeBrackets} from '#/components/icons/CodeBrackets'
Expand All @@ -64,6 +63,7 @@ import {
import {Eye_Stroke2_Corner0_Rounded as Eye} from '#/components/icons/Eye'
import {EyeSlash_Stroke2_Corner0_Rounded as EyeSlash} from '#/components/icons/EyeSlash'
import {Filter_Stroke2_Corner0_Rounded as Filter} from '#/components/icons/Filter'
import {Link_Stroke2_Corner0_Rounded as Link} from '#/components/icons/Link'
import {Mute_Stroke2_Corner0_Rounded as Mute} from '#/components/icons/Mute'
import {PaperPlane_Stroke2_Corner0_Rounded as Send} from '#/components/icons/PaperPlane'
import {PersonX_Stroke2_Corner0_Rounded as PersonX} from '#/components/icons/Person'
Expand Down Expand Up @@ -442,7 +442,7 @@ let PostDropdownMenuItems = ({
<Menu.ItemText>
{isWeb ? _(msg`Copy link to post`) : _(msg`Share`)}
</Menu.ItemText>
<Menu.ItemIcon icon={Share} position="right" />
<Menu.ItemIcon icon={Link} position="right" />
</Menu.Item>

{canEmbed && (
Expand Down
6 changes: 3 additions & 3 deletions src/view/com/util/post-ctrls/PostCtrls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import {
} from '#/state/shell/progress-guide'
import {atoms as a, useTheme} from '#/alf'
import {useDialogControl} from '#/components/Dialog'
import {ArrowOutOfBox_Stroke2_Corner0_Rounded as ArrowOutOfBox} from '#/components/icons/ArrowOutOfBox'
import {Bubble_Stroke2_Corner2_Rounded as Bubble} from '#/components/icons/Bubble'
import {Link_Stroke2_Corner0_Rounded as Link} from '#/components/icons/Link'
import * as Prompt from '#/components/Prompt'
import {PostDropdownBtn} from '../forms/PostDropdownBtn'
import {formatCount} from '../numeric/format'
Expand Down Expand Up @@ -346,9 +346,9 @@ let PostCtrls = ({
accessibilityLabel={_(msg`Share`)}
accessibilityHint=""
hitSlop={POST_CTRL_HITSLOP}>
<ArrowOutOfBox
<Link
style={[defaultCtrlColor, {pointerEvents: 'none'}]}
width={22}
width={21}
/>
</Pressable>
</View>
Expand Down
Loading