mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): make badges a bit paler
too stabby in the eye region
This commit is contained in:
parent
49a72bd714
commit
afad764a00
@ -21,13 +21,7 @@ export const InvAccordionButton = (props: InvAccordionButtonProps) => {
|
|||||||
{children}
|
{children}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{badges?.map((b, i) => (
|
{badges?.map((b, i) => (
|
||||||
<InvBadge
|
<InvBadge key={`${b}.${i}`} colorScheme="blue">
|
||||||
key={`${b}.${i}`}
|
|
||||||
variant="solid"
|
|
||||||
background="blue.400"
|
|
||||||
fontSize={10}
|
|
||||||
fontWeight={800}
|
|
||||||
>
|
|
||||||
{b}
|
{b}
|
||||||
</InvBadge>
|
</InvBadge>
|
||||||
))}
|
))}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
|
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
|
||||||
|
|
||||||
const baseStyle = defineStyle((props) => ({
|
const baseStyle = defineStyle((props) => ({
|
||||||
fontSize: '9px',
|
fontSize: 10,
|
||||||
px: 2,
|
px: 2,
|
||||||
py: 1,
|
py: 1,
|
||||||
minW: 4,
|
minW: 4,
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
borderRadius: 'sm',
|
borderRadius: 'sm',
|
||||||
bg: `${props.colorScheme}.300`,
|
bg: `${props.colorScheme}.200`,
|
||||||
color: 'base.900',
|
color: 'base.900',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
letterSpacing: 0.5,
|
letterSpacing: 0.5,
|
||||||
@ -20,7 +20,6 @@ const baseStyle = defineStyle((props) => ({
|
|||||||
export const badgeTheme = defineStyleConfig({
|
export const badgeTheme = defineStyleConfig({
|
||||||
baseStyle,
|
baseStyle,
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
variant: 'solid',
|
|
||||||
colorScheme: 'base',
|
colorScheme: 'base',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -11,11 +11,7 @@ export const InvTab = memo(
|
|||||||
<ChakraTab ref={ref} {...rest}>
|
<ChakraTab ref={ref} {...rest}>
|
||||||
{children}
|
{children}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{badges?.map((b, i) => (
|
{badges?.map((b, i) => <InvBadge key={`${b}.${i}`} colorScheme='invokeYellow'>{b}</InvBadge>)}
|
||||||
<InvBadge key={`${b}.${i}`} colorScheme="blue">
|
|
||||||
{b}
|
|
||||||
</InvBadge>
|
|
||||||
))}
|
|
||||||
</ChakraTab>
|
</ChakraTab>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user