ThemeEditor: improve layout, improve color of slider

environments/review-theme-edit-1forjd/deployments/1789
Alex Gleason 2 years ago
parent b71bb3966a
commit 34ebe9bd57
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -57,7 +57,7 @@ const Slider: React.FC<ISlider> = ({ value, onChange }) => {
onMouseDown={handleMouseDown}
ref={node}
>
<div className='w-full h-1 bg-white/30 absolute top-1/2 -translate-y-1/2 rounded-full' />
<div className='w-full h-1 bg-primary-200 dark:bg-primary-700 absolute top-1/2 -translate-y-1/2 rounded-full' />
<div className='h-1 bg-accent-500 absolute top-1/2 -translate-y-1/2 rounded-full' style={{ width: `${value * 100}%` }} />
<span
className='bg-accent-500 absolute rounded-full w-3 h-3 -ml-1.5 top-1/2 -translate-y-1/2 z-10 shadow'

@ -165,7 +165,9 @@ const ThemeEditor: React.FC<IThemeEditor> = () => {
onChange={updateColors('danger')}
resetKey={resetKey}
/>
</List>
<List>
<ColorListItem
label='Greentext'
value={colors.greentext}

Loading…
Cancel
Save