ThemeEditor: improve layout, improve color of slider

theme-editor-hsl
Alex Gleason 2022-12-17 21:25:20 -06:00
rodzic b71bb3966a
commit 34ebe9bd57
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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'

Wyświetl plik

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