Skip to content

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.

feat(ui): round the Invoke button inside its attached cluster

Josh Corbett77752f48e659
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx
index c224a0169a..0c5385088d 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/InvokeButton.tsx
@@ -13,6 +13,7 @@ import { useTranslation } from 'react-i18next';
import type { InvocationState } from './useInvocationState';
import { getInvokeIconMode } from './invokeButtonModel';
+import { INVOKE_BUTTON_CSS } from './invokeClusterCss';
import { HIDE_BELOW_HINT_WIDTH } from './topbarBreakpoints';
import { TopbarShortcutKeys } from './TopbarShortcutKeys';
import { useTopbarShortcutBinding } from './useTopbarShortcut';
@@ -89,6 +90,7 @@ export const InvokeButton = ({ state }: { state: InvocationState }) => {
})
}
colorPalette="brand"
+ css={INVOKE_BUTTON_CSS}
cursor={canInvoke ? undefined : 'not-allowed'}
flexShrink={0}
opacity={canInvoke ? undefined : 0.55}
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/invokeClusterCss.ts b/invokeai/frontend/webv2/src/workbench/shell/topbar/invokeClusterCss.ts
new file mode 100644
index 0000000000..8c0e7821a9
--- /dev/null
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/invokeClusterCss.ts
@@ -0,0 +1,4 @@
+/** Invoke keeps full control corners while it sits inside its attached cluster. */
+
+/** Doubled specificity outranks the attached Group's `!important` corner reset. */
+export const INVOKE_BUTTON_CSS = { '&&': { borderRadius: 'control !important' } } as const;