mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): restore prev colors for workflow editor
Brand colors are now prefixed with "invoke".
This commit is contained in:
committed by
Kent Keirsey
parent
d8d266d3be
commit
1a710a4c12
@ -21,7 +21,7 @@ export const InvAccordionButton = (props: InvAccordionButtonProps) => {
|
||||
{children}
|
||||
<Spacer />
|
||||
{badges?.map((b, i) => (
|
||||
<InvBadge key={`${b}.${i}`} colorScheme="blue">
|
||||
<InvBadge key={`${b}.${i}`} colorScheme="invokeBlue">
|
||||
{b}
|
||||
</InvBadge>
|
||||
))}
|
||||
|
@ -28,7 +28,7 @@ const meta: Meta<typeof InvButton> = {
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof InvButton>;
|
||||
|
||||
const colorSchemes = ['base', 'invokeYellow', 'red', 'green', 'blue'] as const;
|
||||
const colorSchemes = ['base', 'invokeYellow', 'invokeRed', 'invokeGreen', 'invokeBlue'] as const;
|
||||
const variants = ['solid', 'outline', 'ghost', 'link'] as const;
|
||||
const sizes = ['xs', 'sm', 'md', 'lg'] as const;
|
||||
|
||||
|
@ -12,7 +12,7 @@ export const InvButton = memo(
|
||||
<InvTooltip label={tooltip}>
|
||||
<Button
|
||||
ref={ref}
|
||||
colorScheme={isChecked ? 'blue' : 'base'}
|
||||
colorScheme={isChecked ? 'invokeBlue' : 'base'}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
@ -22,7 +22,7 @@ export const InvButton = memo(
|
||||
}
|
||||
|
||||
return (
|
||||
<Button ref={ref} colorScheme={isChecked ? 'blue' : 'base'} {...rest}>
|
||||
<Button ref={ref} colorScheme={isChecked ? 'invokeBlue' : 'base'} {...rest}>
|
||||
{children}
|
||||
</Button>
|
||||
);
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
|
||||
|
||||
const blue = defineStyle(() => ({
|
||||
color: 'blue.300',
|
||||
const invokeBlue = defineStyle(() => ({
|
||||
color: 'invokeBlue.300',
|
||||
}));
|
||||
|
||||
export const headingTheme = defineStyleConfig({
|
||||
variants: {
|
||||
blue,
|
||||
invokeBlue,
|
||||
},
|
||||
});
|
||||
|
@ -11,7 +11,7 @@ export const InvIconButton = memo(
|
||||
<InvTooltip label={tooltip}>
|
||||
<IconButton
|
||||
ref={ref}
|
||||
colorScheme={isChecked ? 'blue' : 'base'}
|
||||
colorScheme={isChecked ? 'invokeBlue' : 'base'}
|
||||
{...rest}
|
||||
/>
|
||||
</InvTooltip>
|
||||
@ -21,7 +21,7 @@ export const InvIconButton = memo(
|
||||
return (
|
||||
<IconButton
|
||||
ref={ref}
|
||||
colorScheme={isChecked ? 'blue' : 'base'}
|
||||
colorScheme={isChecked ? 'invokeBlue' : 'base'}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user