Commit 9e37cb22 authored by tom's avatar tom

update ColorModeToggler

parent 06b44f49
...@@ -39,7 +39,7 @@ const Home = () => { ...@@ -39,7 +39,7 @@ const Home = () => {
columnGap={ 12 } columnGap={ 12 }
pl={ 4 } pl={ 4 }
> >
<ColorModeToggler trackBg="whiteAlpha.500"/> <ColorModeToggler trackBg="blackAlpha.900"/>
{ appConfig.isAccountSupported && <ProfileMenuDesktop/> } { appConfig.isAccountSupported && <ProfileMenuDesktop/> }
</Flex> </Flex>
</Flex> </Flex>
......
...@@ -36,8 +36,8 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref) ...@@ -36,8 +36,8 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref)
getRootProps, getRootProps,
} = useCheckbox({ ...ownProps, isChecked: colorMode === 'light' }); } = useCheckbox({ ...ownProps, isChecked: colorMode === 'light' });
const trackBg = useColorModeValue('blackAlpha.100', 'whiteAlpha.200'); const trackBg = useColorModeValue('blackAlpha.100', 'whiteAlpha.100');
const thumbBg = useColorModeValue('white', 'black'); const thumbBg = 'white';
const transitionProps = getDefaultTransitionProps(); const transitionProps = getDefaultTransitionProps();
const trackStyles: SystemStyleObject = React.useMemo(() => ({ const trackStyles: SystemStyleObject = React.useMemo(() => ({
...@@ -96,7 +96,7 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref) ...@@ -96,7 +96,7 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref)
margin={ 2 } margin={ 2 }
zIndex="docked" zIndex="docked"
as={ moonIcon } as={ moonIcon }
color={ useColorModeValue('blue.600', 'white') } color={ useColorModeValue('blue.300', 'blackAlpha.900') }
{ ...transitionProps } { ...transitionProps }
/> />
<chakra.div <chakra.div
...@@ -109,7 +109,7 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref) ...@@ -109,7 +109,7 @@ const ColorModeToggler = forwardRef<ColorModeTogglerProps, 'input'>((props, ref)
margin={ 1.5 } margin={ 1.5 }
zIndex="docked" zIndex="docked"
as={ sunIcon } as={ sunIcon }
color={ useColorModeValue('gray.500', 'blue.600') } color={ useColorModeValue('blackAlpha.900', 'blue.300') }
{ ...transitionProps } { ...transitionProps }
/> />
</chakra.div> </chakra.div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment