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
style(topbar): give the Invoke hotkey badge the button's text color
Josh Corbettc833293f6374
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsxindex 91ec7e189c..fefb8eb120 100644--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx@@ -18,6 +18,8 @@ import { TopbarShortcutKeys } from './TopbarShortcutKeys';import { useTopbarShortcutBinding } from './useTopbarShortcut';const TOOLTIP_CONTENT_PROPS = { p: '0' };+/** The hint inherits the button's text color; its frame is that color, faded. */+const SHORTCUT_BORDER = 'color-mix(in oklab, currentColor 40%, transparent)';type ProgressCircleRootProps = ComponentProps<typeof ProgressCircle.Root>;// The `3xs` size (14px/2px, defined in platform/ui/theme/recipes.ts) is a repo@@ -126,7 +128,7 @@ export const InvokeButton = ({ state }: { state: InvocationState }) => {</Box>{t('topbar.invoke.invoke')}{shortcutParts ? (- <Kbd css={HIDE_BELOW_HINT_WIDTH} variant="outline" color="bg" size="sm">+ <Kbd css={HIDE_BELOW_HINT_WIDTH} variant="outline" borderColor={SHORTCUT_BORDER} color="inherit" size="sm"><TopbarShortcutKeys parts={shortcutParts} /></Kbd>) : null}