mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): InvEditable, linear field view styling
This commit is contained in:
parent
cd292f6c1c
commit
4134f18319
@ -54,7 +54,7 @@ const getColors = (
|
|||||||
const bgColorHover = c === 'invokeYellow' ? `${c}.300` : `${c}.300`;
|
const bgColorHover = c === 'invokeYellow' ? `${c}.300` : `${c}.300`;
|
||||||
|
|
||||||
const notSolidFg = {
|
const notSolidFg = {
|
||||||
fg: c === 'base' ? 'base.100' : bgColor,
|
fg: c === 'base' ? 'base.300' : bgColor,
|
||||||
fgHover: c === 'base' ? 'base.50' : bgColorHover,
|
fgHover: c === 'base' ? 'base.50' : bgColorHover,
|
||||||
fgDisabled: 'base.600',
|
fgDisabled: 'base.600',
|
||||||
};
|
};
|
||||||
|
@ -8,13 +8,17 @@ const { definePartsStyle, defineMultiStyleConfig } =
|
|||||||
createMultiStyleConfigHelpers(parts.keys);
|
createMultiStyleConfigHelpers(parts.keys);
|
||||||
|
|
||||||
const baseStylePreview = defineStyle({
|
const baseStylePreview = defineStyle({
|
||||||
|
fontSize: 'md',
|
||||||
borderRadius: 'md',
|
borderRadius: 'md',
|
||||||
py: '1',
|
py: '1',
|
||||||
transitionProperty: 'common',
|
transitionProperty: 'common',
|
||||||
transitionDuration: 'normal',
|
transitionDuration: 'normal',
|
||||||
|
color: 'base.100'
|
||||||
});
|
});
|
||||||
|
|
||||||
const baseStyleInput = defineStyle(() => ({
|
const baseStyleInput = defineStyle(() => ({
|
||||||
|
color: 'base.100',
|
||||||
|
fontSize: 'md',
|
||||||
borderRadius: 'md',
|
borderRadius: 'md',
|
||||||
py: '1',
|
py: '1',
|
||||||
transitionProperty: 'common',
|
transitionProperty: 'common',
|
||||||
@ -23,8 +27,8 @@ const baseStyleInput = defineStyle(() => ({
|
|||||||
_focusVisible: { boxShadow: 'none' },
|
_focusVisible: { boxShadow: 'none' },
|
||||||
_placeholder: { opacity: 0.6 },
|
_placeholder: { opacity: 0.6 },
|
||||||
'::selection': {
|
'::selection': {
|
||||||
color: 'blue.50',
|
color: 'blue.900',
|
||||||
bg: 'blue.400',
|
bg: 'blue.300',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ const LinearViewField = ({ nodeId, fieldName }: Props) => {
|
|||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
<Flex h="full" alignItems="center">
|
<Flex h="full" alignItems="center">
|
||||||
<Icon as={FaInfoCircle} />
|
<Icon fontSize="sm" color="base.300" as={FaInfoCircle} />
|
||||||
</Flex>
|
</Flex>
|
||||||
</InvTooltip>
|
</InvTooltip>
|
||||||
<InvIconButton
|
<InvIconButton
|
||||||
|
Loading…
Reference in New Issue
Block a user