mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 09:15:11 -05:00
fix(ui): disallow loading/deleting workflow if already open
This commit is contained in:
12
invokeai/frontend/web/src/theme/components/heading.ts
Normal file
12
invokeai/frontend/web/src/theme/components/heading.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
|
||||
import { mode } from '@chakra-ui/theme-tools';
|
||||
|
||||
const accent = defineStyle((props) => ({
|
||||
color: mode('accent.500', 'accent.300')(props),
|
||||
}));
|
||||
|
||||
export const headingTheme = defineStyleConfig({
|
||||
variants: {
|
||||
accent,
|
||||
},
|
||||
});
|
||||
@@ -21,6 +21,7 @@ import { textTheme } from './components/text';
|
||||
import { textareaTheme } from './components/textarea';
|
||||
import { tooltipTheme } from './components/tooltip';
|
||||
import { reactflowStyles } from './custom/reactflow';
|
||||
import { headingTheme } from 'theme/components/heading';
|
||||
|
||||
export const theme: ThemeOverride = {
|
||||
config: {
|
||||
@@ -146,6 +147,7 @@ export const theme: ThemeOverride = {
|
||||
Menu: menuTheme,
|
||||
Text: textTheme,
|
||||
Tooltip: tooltipTheme,
|
||||
Heading: headingTheme,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user