Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(webv2): use arrows on tooltips
joshistoast7317e9c9ed20
diff --git a/invokeai/frontend/webv2/src/theme/themes.ts b/invokeai/frontend/webv2/src/theme/themes.tsindex f00c2e0bfc..064e1feb4d 100644--- a/invokeai/frontend/webv2/src/theme/themes.ts+++ b/invokeai/frontend/webv2/src/theme/themes.ts@@ -1,8 +1,8 @@import type { WorkbenchThemeId } from '../workbench/types';/**- * A single, mode-agnostic set of concrete color values that fully describes one- * workbench theme. Every theme provides the same slots so the semantic-token+ * A single, mode-agnostic set of concrete CSS color values that fully describes+ * one workbench theme. Every theme provides the same slots so the semantic-token* builder in `system.ts` can generate a uniform token contract across themes.** Components never read these slots directly — they consume the semantic tokens@@ -67,123 +67,123 @@ export interface ThemeDefinition {export const DEFAULT_THEME_ID: WorkbenchThemeId = 'dark';const dark: ThemeColors = {- shell: '#141514',- surface: '#161716',- surfaceRaised: '#181918',- center: '#1a1b1a',- canvas: '#1c1d1c',- panel: '#282928',- panelStroke: '#303330',- line: '#2e312d',- lineStrong: '#343832',- dot: '#343734',- fg: '#d7dec7',- fgMuted: '#a9afa1',- fgSubtle: '#6f756a',- accent: '#cbff63',- accentFg: '#10160b',- accentMuted: '#33372a',- accentMutedFg: '#dfff8c',- active: '#59cfff',- activeFg: '#081218',- danger: '#ff6b6b',- paletteSubtle: '#181918',+ shell: 'oklch(19.42% 0.0025 145.48)',+ surface: 'oklch(20.311% 0.0025 145.48)',+ surfaceRaised: 'oklch(21.192% 0.0025 145.49)',+ center: 'oklch(22.064% 0.0024 145.49)',+ canvas: 'oklch(22.927% 0.0024 145.5)',+ panel: 'oklch(27.953% 0.0023 145.51)',+ panelStroke: 'oklch(31.705% 0.0067 145.42)',+ line: 'oklch(30.875% 0.0082 137.81)',+ lineStrong: 'oklch(33.473% 0.0117 135)',+ dot: 'oklch(33.28% 0.0066 145.42)',+ fg: 'oklch(88.901% 0.0317 120.83)',+ fgMuted: 'oklch(74.519% 0.0208 125.92)',+ fgSubtle: 'oklch(55.387% 0.0182 130.58)',+ accent: 'oklch(93.444% 0.19 125.56)',+ accentFg: 'oklch(19.003% 0.0232 131.55)',+ accentMuted: 'oklch(32.866% 0.0228 121.55)',+ accentMutedFg: 'oklch(95.264% 0.1456 121.96)',+ active: 'oklch(80.623% 0.1248 228.24)',+ activeFg: 'oklch(17.553% 0.0195 235.44)',+ danger: 'oklch(71.161% 0.1812 22.84)',+ paletteSubtle: 'oklch(25.368% 0.0035 164.78)',};const light: ThemeColors = {- shell: '#eef0eb',- surface: '#ffffff',- surfaceRaised: '#f8faf5',- center: '#e7eae3',- canvas: '#dfe3da',- panel: '#f3f5ef',- panelStroke: '#d2d7c9',- line: '#e0e4da',- lineStrong: '#c7cdbb',- dot: '#cdd2c4',- fg: '#1a1d16',- fgMuted: '#565c4d',- fgSubtle: '#8b9182',- accent: '#69a417',- accentFg: '#0d1604',- accentMuted: '#dcecbf',- accentMutedFg: '#39520f',- active: '#2563eb',- activeFg: '#ffffff',- danger: '#c33d3d',- paletteSubtle: '#f8faf5',+ shell: 'oklch(95.222% 0.007 124.45)',+ surface: 'oklch(100% 0 0)',+ surfaceRaised: 'oklch(98.221% 0.0069 124.45)',+ center: 'oklch(93.28% 0.0099 125.68)',+ canvas: 'oklch(91.025% 0.0128 126.38)',+ panel: 'oklch(96.697% 0.0082 121.63)',+ panelStroke: 'oklch(87.14% 0.0197 122.87)',+ line: 'oklch(91.302% 0.014 124.57)',+ lineStrong: 'oklch(83.866% 0.0254 121.98)',+ dot: 'oklch(85.598% 0.0198 122.88)',+ fg: 'oklch(22.5% 0.0139 126.4)',+ fgMuted: 'oklch(46.478% 0.0248 125.12)',+ fgSubtle: 'oklch(64.728% 0.0229 124.86)',+ accent: 'oklch(65.33% 0.1716 131.16)',+ accentFg: 'oklch(18.537% 0.0379 130.07)',+ accentMuted: 'oklch(91.965% 0.0617 123.52)',+ accentMutedFg: 'oklch(40.391% 0.0959 128.33)',+ active: 'oklch(54.615% 0.2152 262.88)',+ activeFg: 'oklch(100% 0 0)',+ danger: 'oklch(55.509% 0.1707 24.62)',+ paletteSubtle: 'oklch(98.221% 0.0069 124.45)',};const forest: ThemeColors = {- shell: '#0c120c',- surface: '#0f160f',- surfaceRaised: '#121b12',- center: '#101810',- canvas: '#0d150d',- panel: '#1a271a',- panelStroke: '#28401f',- line: '#1d2c1c',- lineStrong: '#2c4528',- dot: '#2a4127',- fg: '#d2e8c6',- fgMuted: '#94ac88',- fgSubtle: '#5f7556',- accent: '#84d65a',- accentFg: '#08160a',- accentMuted: '#213520',- accentMutedFg: '#bdeaa3',- active: '#3fb6a0',- activeFg: '#04140f',- danger: '#e8775a',- paletteSubtle: '#1c3019',+ shell: 'oklch(17.349% 0.0154 144.88)',+ surface: 'oklch(19.03% 0.0175 144.85)',+ surfaceRaised: 'oklch(20.99% 0.0219 144.74)',+ center: 'oklch(19.795% 0.0198 144.78)',+ canvas: 'oklch(18.457% 0.0201 144.71)',+ panel: 'oklch(25.62% 0.03 144.64)',+ panelStroke: 'oklch(34.227% 0.0623 137.66)',+ line: 'oklch(27.425% 0.0354 143.04)',+ lineStrong: 'oklch(36.133% 0.0575 141.06)',+ dot: 'oklch(34.825% 0.0526 141.63)',+ fg: 'oklch(90.57% 0.0511 134.45)',+ fgMuted: 'oklch(71.619% 0.0575 135.25)',+ fgSubtle: 'oklch(53.577% 0.0538 136.73)',+ accent: 'oklch(79.714% 0.1784 136.37)',+ accentFg: 'oklch(18.298% 0.0314 147.69)',+ accentMuted: 'oklch(30.516% 0.0451 143.28)',+ accentMutedFg: 'oklch(88.797% 0.1051 134.45)',+ active: 'oklch(70.437% 0.1101 178.23)',+ activeFg: 'oklch(17.44% 0.0258 171.89)',+ danger: 'oklch(69.305% 0.1467 35.44)',+ paletteSubtle: 'oklch(28.489% 0.0483 141.22)',};const mono: ThemeColors = {- shell: '#121212',- surface: '#161616',- surfaceRaised: '#1b1b1b',- center: '#181818',- canvas: '#1c1c1c',- panel: '#272727',- panelStroke: '#343434',- line: '#2b2b2b',- lineStrong: '#3a3a3a',- dot: '#353535',- fg: '#e8e8e8',- fgMuted: '#a3a3a3',- fgSubtle: '#6e6e6e',- accent: '#e8e8e8',- accentFg: '#121212',- accentMuted: '#2e2e2e',- accentMutedFg: '#d6d6d6',- active: '#9a9a9a',- activeFg: '#121212',- danger: '#d68a8a',- paletteSubtle: '#1b1b1b',+ shell: 'oklch(18.22% 0 0)',+ surface: 'oklch(20.019% 0 0)',+ surfaceRaised: 'oklch(22.213% 0 0)',+ center: 'oklch(20.904% 0 0)',+ canvas: 'oklch(22.645% 0 0)',+ panel: 'oklch(27.274% 0 0)',+ panelStroke: 'oklch(32.504% 0 0)',+ line: 'oklch(28.908% 0 0)',+ lineStrong: 'oklch(34.846% 0 0)',+ dot: 'oklch(32.897% 0 0)',+ fg: 'oklch(93.1% 0 0)',+ fgMuted: 'oklch(71.547% 0 0)',+ fgSubtle: 'oklch(53.824% 0 0)',+ accent: 'oklch(93.1% 0 0)',+ accentFg: 'oklch(18.22% 0 0)',+ accentMuted: 'oklch(30.118% 0 0)',+ accentMutedFg: 'oklch(87.61% 0 0)',+ active: 'oklch(68.622% 0 0)',+ activeFg: 'oklch(18.22% 0 0)',+ danger: 'oklch(71.115% 0.0934 19.64)',+ paletteSubtle: 'oklch(28.908% 0 0)',};const ultradark: ThemeColors = {- shell: '#000000',- surface: '#050505',- surfaceRaised: '#0a0a0a',- center: '#070707',- canvas: '#0b0b0b',- panel: '#141414',- panelStroke: '#202020',- line: '#181818',- lineStrong: '#262626',- dot: '#1f1f1f',- fg: '#d7dec7',- fgMuted: '#8f968a',- fgSubtle: '#585d52',- accent: '#cbff63',- accentFg: '#0a0f05',- accentMuted: '#1f2614',- accentMutedFg: '#cdf08a',- active: '#59cfff',- activeFg: '#05121a',- danger: '#ff6b6b',- paletteSubtle: '#0a0a0a',+ shell: 'oklch(0% 0 0)',+ surface: 'oklch(11.492% 0 0)',+ surfaceRaised: 'oklch(14.479% 0 0)',+ center: 'oklch(12.856% 0 0)',+ canvas: 'oklch(14.958% 0 0)',+ panel: 'oklch(19.125% 0 0)',+ panelStroke: 'oklch(24.353% 0 0)',+ line: 'oklch(20.904% 0 0)',+ lineStrong: 'oklch(26.862% 0 0)',+ dot: 'oklch(23.929% 0 0)',+ fg: 'oklch(88.901% 0.0317 120.83)',+ fgMuted: 'oklch(66.382% 0.0192 131.96)',+ fgSubtle: 'oklch(47.041% 0.0184 127.12)',+ accent: 'oklch(93.444% 0.19 125.56)',+ accentFg: 'oklch(15.913% 0.0233 128.66)',+ accentMuted: 'oklch(25.602% 0.0333 125.95)',+ accentMutedFg: 'oklch(90.752% 0.134 124.5)',+ active: 'oklch(80.623% 0.1248 228.24)',+ activeFg: 'oklch(17.416% 0.0256 235.84)',+ danger: 'oklch(71.161% 0.1812 22.84)',+ paletteSubtle: 'oklch(21.779% 0 0)',};/**diff --git a/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx b/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsxindex b568ba5755..7c28d7e05a 100644--- a/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx+++ b/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx@@ -405,7 +405,13 @@ const QuickMenuItem = ({value: string;onClick: () => void;}) => (- <Tooltip content={label} contentProps={{ fontSize: '2xs' }} openDelay={300} positioning={{ placement: 'top' }}>+ <Tooltip+ showArrow+ content={label}+ contentProps={{ fontSize: '2xs' }}+ openDelay={300}+ positioning={{ placement: 'top' }}+ ><Menu.Item aria-label={label} flex="1" justifyContent="center" value={value} onClick={onClick}><Icon as={icon} boxSize="4" color="fg.default" /></Menu.Item>diff --git a/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx b/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsxindex 63b33d0d1a..fb2f6cf185 100644--- a/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx+++ b/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx@@ -39,6 +39,7 @@ export const ProjectTabs = () => {{state.projects.length > 1 && (<CloseButtonsize="2xs"+ me="-2"as="span"role="button"onClick={(event) => {@@ -49,7 +50,7 @@ export const ProjectTabs = () => {)}</Tabs.Trigger>))}- <Tooltip content="Create new project">+ <Tooltip content="Create new project" showArrow><IconButtonaria-label="Create new project"flexShrink={0}diff --git a/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx b/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsxindex 79433d9d2d..10b35071a2 100644--- a/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx@@ -118,6 +118,7 @@ const CompactBottomWidget = ({content={item.failureMessage ? `${item.label}: ${item.failureMessage}` : item.label}openDelay={250}positioning={{ placement: 'top-start' }}+ showArrow>{content}</Tooltip>@@ -130,6 +131,7 @@ const CompactBottomWidget = ({content={<WidgetRenderer widget={item.widget} presentation="tooltip" region="bottom" />}openDelay={250}positioning={{ placement: 'top-start' }}+ showArrow>{content}</Tooltip>diff --git a/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsxindex cef511a364..e504de2210 100644--- a/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx@@ -72,7 +72,13 @@ const WidgetSlot = ({const tooltipLabel = item.failureMessage ? `${item.label}: ${item.failureMessage}` : item.label;return (- <Tooltip closeDelay={80} content={tooltipLabel} openDelay={250} positioning={{ placement: tooltipPlacement }}>+ <Tooltip+ showArrow+ closeDelay={80}+ content={tooltipLabel}+ openDelay={250}+ positioning={{ placement: tooltipPlacement }}+ ><Flexalign="center"aria-label={item.label}