Commit 3950aae6 authored by tom's avatar tom

more colors for dark mode fixes

parent 67ae1a21
...@@ -11,7 +11,7 @@ const variantSimple: PartsStyleFunction<typeof parts> = (props) => { ...@@ -11,7 +11,7 @@ const variantSimple: PartsStyleFunction<typeof parts> = (props) => {
return { return {
th: { th: {
border: 0, border: 0,
color: mode('gray.600', 'gray.50')(props), color: mode('gray.600', 'whiteAlpha.700')(props),
...transitionProps, ...transitionProps,
}, },
thead: { thead: {
......
...@@ -5,14 +5,14 @@ import getDefaultFormColors from './getDefaultFormColors'; ...@@ -5,14 +5,14 @@ import getDefaultFormColors from './getDefaultFormColors';
import getDefaultTransitionProps from './getDefaultTransitionProps'; import getDefaultTransitionProps from './getDefaultTransitionProps';
export default function getOutlinedFieldStyles(props: StyleFunctionProps) { export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
const { theme } = props; const { theme, borderColor } = props;
const { focusColor: fc, errorColor: ec } = getDefaultFormColors(props); const { focusColor: fc, errorColor: ec } = getDefaultFormColors(props);
const transitionProps = getDefaultTransitionProps(); const transitionProps = getDefaultTransitionProps();
return { return {
border: '2px solid', border: '2px solid',
bg: 'inherit',
// filled input // filled input
backgroundColor: 'transparent',
borderColor: mode('gray.300', 'gray.600')(props), borderColor: mode('gray.300', 'gray.600')(props),
...transitionProps, ...transitionProps,
_hover: { _hover: {
...@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) { ...@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
}, },
_disabled: { _disabled: {
opacity: 1, opacity: 1,
background: mode('gray.200', 'whiteAlpha.400')(props), backgroundColor: mode('gray.200', 'whiteAlpha.200')(props),
border: 'none', border: 'none',
cursor: 'not-allowed', cursor: 'not-allowed',
}, },
...@@ -41,7 +41,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) { ...@@ -41,7 +41,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
color: mode('blackAlpha.600', 'whiteAlpha.600')(props), color: mode('blackAlpha.600', 'whiteAlpha.600')(props),
}, },
// not filled input // not filled input
':placeholder-shown:not(:focus-visible):not(:hover)': { borderColor: mode('gray.100', 'gray.700')(props) }, ':placeholder-shown:not(:focus-visible):not(:hover)': { borderColor: borderColor || mode('gray.100', 'gray.700')(props) },
':-webkit-autofill': { transition: 'background-color 5000s ease-in-out 0s' }, ':-webkit-autofill': { transition: 'background-color 5000s ease-in-out 0s' },
':-webkit-autofill:hover': { transition: 'background-color 5000s ease-in-out 0s' }, ':-webkit-autofill:hover': { transition: 'background-color 5000s ease-in-out 0s' },
':-webkit-autofill:focus': { transition: 'background-color 5000s ease-in-out 0s' }, ':-webkit-autofill:focus': { transition: 'background-color 5000s ease-in-out 0s' },
......
...@@ -29,7 +29,7 @@ const NAME_MAX_LENGTH = 100; ...@@ -29,7 +29,7 @@ const NAME_MAX_LENGTH = 100;
const ApiKeyForm: React.FC<Props> = ({ data, onClose }) => { const ApiKeyForm: React.FC<Props> = ({ data, onClose }) => {
const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>(); const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>();
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const formBackgroundColor = useColorModeValue('white', 'gray.800'); const formBackgroundColor = useColorModeValue('white', 'gray.900');
useEffect(() => { useEffect(() => {
setValue('token', data?.api_key || ''); setValue('token', data?.api_key || '');
......
...@@ -48,7 +48,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose }) => { ...@@ -48,7 +48,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose }) => {
return fetch(`/api/account/custom-abis/${ data.id }`, { method: 'PUT', body }); return fetch(`/api/account/custom-abis/${ data.id }`, { method: 'PUT', body });
}; };
const formBackgroundColor = useColorModeValue('white', 'gray.800'); const formBackgroundColor = useColorModeValue('white', 'gray.900');
const mutation = useMutation(customAbiKey, { const mutation = useMutation(customAbiKey, {
onSuccess: async(data) => { onSuccess: async(data) => {
......
...@@ -30,6 +30,7 @@ const SearchBar = () => { ...@@ -30,6 +30,7 @@ const SearchBar = () => {
placeholder="Search by addresses / transactions / block / token... " placeholder="Search by addresses / transactions / block / token... "
ml="1px" ml="1px"
onChange={ handleChange } onChange={ handleChange }
borderColor={ useColorModeValue('blackAlpha.100', 'whiteAlpha.200') }
/> />
</InputGroup> </InputGroup>
</form> </form>
......
...@@ -19,7 +19,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => { ...@@ -19,7 +19,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
as={ networksIcon } as={ networksIcon }
width="16px" width="16px"
height="16px" height="16px"
color={ useColorModeValue('gray.500', 'white') } color={ useColorModeValue('gray.500', 'gray.400') }
_hover={{ color: 'blue.400' }} _hover={{ color: 'blue.400' }}
marginLeft={ isCollapsed ? '0px' : '27px' } marginLeft={ isCollapsed ? '0px' : '27px' }
cursor="pointer" cursor="pointer"
......
...@@ -29,7 +29,7 @@ type Inputs = { ...@@ -29,7 +29,7 @@ type Inputs = {
const AddressForm: React.FC<Props> = ({ data, onClose }) => { const AddressForm: React.FC<Props> = ({ data, onClose }) => {
const [ pending, setPending ] = useState(false); const [ pending, setPending ] = useState(false);
const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>(); const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>();
const formBackgroundColor = useColorModeValue('white', 'gray.800'); const formBackgroundColor = useColorModeValue('white', 'gray.900');
useEffect(() => { useEffect(() => {
setValue('address', data?.address_hash || ''); setValue('address', data?.address_hash || '');
......
...@@ -29,7 +29,7 @@ type Inputs = { ...@@ -29,7 +29,7 @@ type Inputs = {
const TransactionForm: React.FC<Props> = ({ data, onClose }) => { const TransactionForm: React.FC<Props> = ({ data, onClose }) => {
const [ pending, setPending ] = useState(false); const [ pending, setPending ] = useState(false);
const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>(); const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>();
const formBackgroundColor = useColorModeValue('white', 'gray.800'); const formBackgroundColor = useColorModeValue('white', 'gray.900');
useEffect(() => { useEffect(() => {
setValue('transaction', data?.transaction_hash || ''); setValue('transaction', data?.transaction_hash || '');
......
...@@ -31,7 +31,7 @@ type Inputs = { ...@@ -31,7 +31,7 @@ type Inputs = {
const AddressForm: React.FC<Props> = ({ data }) => { const AddressForm: React.FC<Props> = ({ data }) => {
const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>(); const { control, handleSubmit, formState: { errors }, setValue } = useForm<Inputs>();
const formBackgroundColor = useColorModeValue('white', 'gray.800'); const formBackgroundColor = useColorModeValue('white', 'gray.900');
useEffect(() => { useEffect(() => {
setValue('address', data?.address || ''); setValue('address', data?.address || '');
......
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