-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e756a4
commit 5808579
Showing
13 changed files
with
1,675 additions
and
833 deletions.
There are no files selected for viewing
This file contains 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
931 changes: 502 additions & 429 deletions
931
typescript/vscode-extension/webview-ui/build/assets/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
619 changes: 371 additions & 248 deletions
619
typescript/vscode-extension/webview-ui/pnpm-lock.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
typescript/vscode-extension/webview-ui/src/components/AntSwitch.tsx
This file contains 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,43 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import Switch from '@mui/material/Switch'; | ||
|
||
export const AntSwitch = styled(Switch)(({ theme }) => ({ | ||
width: 28, | ||
height: 16, | ||
padding: 0, | ||
display: 'flex', | ||
'&:active': { | ||
'& .MuiSwitch-thumb': { | ||
width: 15, | ||
}, | ||
'& .MuiSwitch-switchBase.Mui-checked': { | ||
transform: 'translateX(9px)', | ||
}, | ||
}, | ||
'& .MuiSwitch-switchBase': { | ||
padding: 2, | ||
'&.Mui-checked': { | ||
transform: 'translateX(12px)', | ||
color: '#fff', | ||
'& + .MuiSwitch-track': { | ||
opacity: 1, | ||
backgroundColor: theme.palette.mode === 'dark' ? '#177ddc' : '#1890ff', | ||
}, | ||
}, | ||
}, | ||
'& .MuiSwitch-thumb': { | ||
boxShadow: '0 2px 4px 0 rgb(0 35 11 / 20%)', | ||
width: 12, | ||
height: 12, | ||
borderRadius: 6, | ||
transition: theme.transitions.create(['width'], { | ||
duration: 200, | ||
}), | ||
}, | ||
'& .MuiSwitch-track': { | ||
borderRadius: 16 / 2, | ||
opacity: 1, | ||
backgroundColor: 'rgba(255,255,255,.35)', | ||
boxSizing: 'border-box', | ||
}, | ||
})); |
This file contains 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.