- Notifications
You must be signed in to change notification settings - Fork1k
feat: add support for insiders channel to "VS Code Desktop" button#7730
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
8159639
add VS Code Insiders Button
matifali7680ae1
Add arrow and fix icon
matifali661152a
make fmt
matifali18496a3
make lint
matifali26e1486
make lint again
matifali6dda11d
Merge branch 'main' into feat/issue-6267/add-vscode-insiders
BrunoQuaresmae596f3a
Design tweaks
BrunoQuaresmaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
import SvgIcon, { SvgIconProps } from "@mui/material/SvgIcon" | ||
export const VSCodeInsidersIcon = (props: SvgIconProps) => ( | ||
<SvgIcon {...props} viewBox="0 0 256 256"> | ||
<svg | ||
width="256" | ||
height="256" | ||
viewBox="0 0 256 256" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<mask | ||
id="mask0" | ||
mask-type="alpha" | ||
maskUnits="userSpaceOnUse" | ||
x="0" | ||
y="0" | ||
width="256" | ||
height="256" | ||
> | ||
<path | ||
d="M176.049 250.669C180.838 255.459 188.13 256.7 194.234 253.764L246.94 228.419C252.478 225.755 256 220.154 256 214.008V42.1479C256 36.0025 252.478 30.4008 246.94 27.7374L194.234 2.39089C188.13 -0.544416 180.838 0.696607 176.049 5.48572C181.95 -0.41506 192.039 3.76413 192.039 12.1091V244.046C192.039 252.391 181.95 256.57 176.049 250.669Z" | ||
fill="white" | ||
/> | ||
<path | ||
d="M181.379 180.646L114.33 128.633L181.379 75.5114V17.794C181.379 10.8477 173.128 7.20673 167.996 11.8862L74.6514 97.8518L31.1994 64.1438C27.1081 61.039 21.3851 61.294 17.5853 64.7476L3.48974 77.5627C-1.15847 81.7893 -1.16367 89.0948 3.47672 93.3292L167.98 244.185C173.107 248.887 181.379 245.249 181.379 238.292V180.646Z" | ||
fill="white" | ||
/> | ||
<path | ||
d="M36.6937 134.195L3.47672 162.828C-1.16367 167.062 -1.15847 174.37 3.48974 178.594L17.5853 191.409C21.3851 194.863 27.1081 195.118 31.1994 192.013L69.4472 164.057L36.6937 134.195Z" | ||
fill="white" | ||
/> | ||
</mask> | ||
<g mask="url(#mask0)"> | ||
<path | ||
d="M167.996 11.8857C173.128 7.20627 181.379 10.8473 181.379 17.7936V75.5109L104.938 136.073L65.5742 106.211L167.996 11.8857Z" | ||
fill="#009A7C" | ||
/> | ||
<path | ||
d="M36.6937 134.194L3.47672 162.827C-1.16367 167.062 -1.15847 174.37 3.48974 178.594L17.5853 191.409C21.3851 194.863 27.1081 195.118 31.1994 192.013L69.4472 164.056L36.6937 134.194Z" | ||
fill="#009A7C" | ||
/> | ||
<g filter="url(#filter0_d)"> | ||
<path | ||
d="M181.379 180.645L31.1994 64.1427C27.1081 61.0379 21.3851 61.2929 17.5853 64.7465L3.48974 77.5616C-1.15847 81.7882 -1.16367 89.0937 3.47672 93.3281L167.972 244.176C173.102 248.881 181.379 245.241 181.379 238.28V180.645Z" | ||
fill="#00B294" | ||
/> | ||
</g> | ||
<g filter="url(#filter1_d)"> | ||
<path | ||
d="M194.233 253.766C188.13 256.701 180.837 255.46 176.048 250.671C181.949 256.571 192.039 252.392 192.039 244.047V12.1103C192.039 3.76535 181.949 -0.413839 176.048 5.48694C180.837 0.697824 188.129 -0.543191 194.233 2.3921L246.939 27.7386C252.478 30.402 256 36.0037 256 42.1491V214.009C256 220.155 252.478 225.757 246.939 228.42L194.233 253.766Z" | ||
fill="#24BFA5" | ||
/> | ||
</g> | ||
</g> | ||
<defs> | ||
<filter | ||
id="filter0_d" | ||
x="-21.3333" | ||
y="40.6413" | ||
width="224.045" | ||
height="226.988" | ||
filterUnits="userSpaceOnUse" | ||
colorInterpolationFilters="sRGB" | ||
> | ||
<feFlood floodOpacity="0" result="BackgroundImageFix" /> | ||
<feColorMatrix | ||
in="SourceAlpha" | ||
type="matrix" | ||
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" | ||
/> | ||
<feOffset /> | ||
<feGaussianBlur stdDeviation="10.6667" /> | ||
<feColorMatrix | ||
type="matrix" | ||
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" | ||
/> | ||
<feBlend | ||
mode="normal" | ||
in2="BackgroundImageFix" | ||
result="effect1_dropShadow" | ||
/> | ||
<feBlend | ||
mode="normal" | ||
in="SourceGraphic" | ||
in2="effect1_dropShadow" | ||
result="shape" | ||
/> | ||
</filter> | ||
<filter | ||
id="filter1_d" | ||
x="154.715" | ||
y="-20.5169" | ||
width="122.618" | ||
height="297.191" | ||
filterUnits="userSpaceOnUse" | ||
colorInterpolationFilters="sRGB" | ||
> | ||
<feFlood floodOpacity="0" result="BackgroundImageFix" /> | ||
<feColorMatrix | ||
in="SourceAlpha" | ||
type="matrix" | ||
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" | ||
/> | ||
<feOffset /> | ||
<feGaussianBlur stdDeviation="10.6667" /> | ||
<feColorMatrix | ||
type="matrix" | ||
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" | ||
/> | ||
<feBlend | ||
mode="overlay" | ||
in2="BackgroundImageFix" | ||
result="effect1_dropShadow" | ||
/> | ||
<feBlend | ||
mode="normal" | ||
in="SourceGraphic" | ||
in2="effect1_dropShadow" | ||
result="shape" | ||
/> | ||
</filter> | ||
</defs> | ||
</svg> | ||
</SvgIcon> | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,34 @@ | ||
import Button, { ButtonProps } from "@mui/material/Button" | ||
import { FC, forwardRef } from "react" | ||
export const PrimaryAgentButton: FC<ButtonProps> = ({ | ||
className, | ||
...props | ||
}) => { | ||
return ( | ||
<Button | ||
color="neutral" | ||
{...props} | ||
sx={{ | ||
backgroundColor: (theme) => theme.palette.background.default, | ||
"&:hover": { | ||
backgroundColor: (theme) => theme.palette.background.paper, | ||
}, | ||
// Making them smaller since those icons don't have a padding around them | ||
"& .MuiButton-startIcon": { | ||
width: 12, | ||
height: 12, | ||
"& svg": { width: "100%", height: "100%" }, | ||
}, | ||
...props.sx, | ||
}} | ||
/> | ||
) | ||
} | ||
// eslint-disable-next-line react/display-name -- Name is inferred from variable name | ||
export const SecondaryAgentButton = forwardRef<HTMLButtonElement, ButtonProps>( | ||
({ className, ...props }, ref) => { | ||
return <Button ref={ref} className={className} {...props} /> | ||
}, | ||
) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.