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(webv2): mark segment control selection with the accent palette
joshistoast2c2ead5879f6
diff --git a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.tsindex 289ec646a3..4577f28f78 100644--- a/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts+++ b/invokeai/frontend/webv2/src/platform/ui/theme/recipes.ts@@ -161,7 +161,9 @@ export const segmentGroupSlotRecipe = defineSlotRecipe({root: {...chakraSlotRecipes.segmentGroup.base?.root,'--segment-radius': 'radii.sm',- '--segment-indicator-bg': 'colors.bg.emphasized',+ // A neutral fill disappears against the lighter section surfaces these+ // controls sit on, so the selection reads through the accent palette.+ '--segment-indicator-bg': 'colors.accent.solid','--segment-indicator-shadow': 'none',bg: 'transparent',borderColor: 'border.subtle',@@ -176,12 +178,12 @@ export const segmentGroupSlotRecipe = defineSlotRecipe({transitionDuration: 'faster',transitionProperty: 'background, color',_before: { display: 'none' },- _checked: { color: 'fg' },+ _checked: { color: 'accent.contrast' },_hover: {'&:not([data-state=checked])': { color: 'fg' },},'&[data-state=checked][data-ssr]': {- bg: 'bg.emphasized',+ bg: 'accent.solid',shadow: 'none',},},