ThemeEditor: improve layout, improve color of slider
This commit is contained in:
parent
b71bb3966a
commit
34ebe9bd57
2 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,7 @@ const Slider: React.FC<ISlider> = ({ value, onChange }) => {
|
||||||
onMouseDown={handleMouseDown}
|
onMouseDown={handleMouseDown}
|
||||||
ref={node}
|
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}%` }} />
|
<div className='h-1 bg-accent-500 absolute top-1/2 -translate-y-1/2 rounded-full' style={{ width: `${value * 100}%` }} />
|
||||||
<span
|
<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'
|
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')}
|
onChange={updateColors('danger')}
|
||||||
resetKey={resetKey}
|
resetKey={resetKey}
|
||||||
/>
|
/>
|
||||||
|
</List>
|
||||||
|
|
||||||
|
<List>
|
||||||
<ColorListItem
|
<ColorListItem
|
||||||
label='Greentext'
|
label='Greentext'
|
||||||
value={colors.greentext}
|
value={colors.greentext}
|
||||||
|
|
Loading…
Reference in a new issue