mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
move theme colour switch
This commit is contained in:
@@ -115,6 +115,16 @@ function ThemeCreator({ themeID }: { themeID?: string }) {
|
|||||||
className='w-full p-2 rounded-lg focus:outline-none ring-0 focus:ring-1 ring-zinc-100 dark:ring-zinc-700 dark:bg-zinc-900 dark:text-white' />
|
className='w-full p-2 rounded-lg focus:outline-none ring-0 focus:ring-1 ring-zinc-100 dark:ring-zinc-700 dark:bg-zinc-900 dark:text-white' />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className='flex items-center justify-between pt-4'>
|
||||||
|
<div>
|
||||||
|
<div className='pr-2 text-sm font-semibold'>Custom Theme Colour</div>
|
||||||
|
<div className='pr-2 text-[11px]'>Allow users to change the theme colour</div>
|
||||||
|
</div>
|
||||||
|
<Switch
|
||||||
|
state={theme.CanChangeColour}
|
||||||
|
onChange={value => setTheme({ ...theme, CanChangeColour: value })} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
<Accordion defaultOpened title='Default Theme Colour'>
|
<Accordion defaultOpened title='Default Theme Colour'>
|
||||||
@@ -126,16 +136,6 @@ function ThemeCreator({ themeID }: { themeID?: string }) {
|
|||||||
value={theme.defaultColour}
|
value={theme.defaultColour}
|
||||||
onChange={(color: string) => setTheme({ ...theme, defaultColour: color })} />
|
onChange={(color: string) => setTheme({ ...theme, defaultColour: color })} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='flex items-center justify-between pt-4'>
|
|
||||||
<div>
|
|
||||||
<div className='pr-2 text-sm font-semibold'>Customisable</div>
|
|
||||||
<div className='pr-2 text-[11px]'>Allow users to change the theme colour</div>
|
|
||||||
</div>
|
|
||||||
<Switch
|
|
||||||
state={theme.CanChangeColour}
|
|
||||||
onChange={value => setTheme({ ...theme, CanChangeColour: value })} />
|
|
||||||
</div>
|
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|||||||
Reference in New Issue
Block a user