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
fix(workbench): match non-active widget hover fill to the active one
Josh Corbettcdf6421faaa6
diff --git a/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx b/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsxindex c7c6a3b700..4b1429ae08 100644--- a/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx@@ -38,11 +38,12 @@ const BOTTOM_MENU_POSITIONING = { placement: 'top-end' } as const;const WIDGET_POPOVER_POSITIONING = { placement: 'top-end' } as const;const BOTTOM_MENU_TRIGGER = { kind: 'bottom' } as const;/**- * Same three-step ladder as the side rails (see `WidgetBar`): the brand hue- * marks the open widget through its content colour, on a neutral fill, because- * a brand tint of this bar is indistinguishable from it on the light theme.+ * Same ladder as the side rails (see `WidgetBar`): hover and active share one+ * fill, and the brand hue marks the open widget through its content colour,+ * because a brand tint of this bar is indistinguishable from it on the light+ * theme.*/-const COMPACT_ROW_HOVER_PROPS = { bg: 'bg.muted', color: 'fg' };+const COMPACT_ROW_HOVER_PROPS = { bg: 'bg.emphasized', color: 'fg' };const COMPACT_ROW_ACTIVE_PROPS = { bg: 'bg.emphasized', color: 'brand.fg' };const COMPACT_ROW_ACTIVE_HOVER_PROPS = { bg: 'bg.emphasized', color: 'brand.fg' };const TOOLTIP_POSITIONING = { placement: 'top' } as const;diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsxindex b1f739876b..6412ea462b 100644--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx@@ -170,8 +170,8 @@ const RailGroup = ({};/**- * Rail states, quietest to loudest: idle icon dimmed, hover one neutral step- * up, active a further step with the icon in the brand hue.+ * Rail states: idle icon dimmed, hover and active share the same fill, and+ * only the active icon takes the brand hue.** The brand lives in the icon rather than the fill because it cannot live in* the fill: the seed is a 92%-lightness lime, so every brand tint of the light@@ -191,7 +191,7 @@ export const WIDGET_ITEM_SX: SystemStyleObject = {w: 9,color: 'fg.muted','&[aria-pressed="false"]:hover': {- bg: 'bg.muted',+ bg: 'bg.emphasized',color: 'fg',},'&[aria-pressed="true"]': {