1
- import { Box , Button , Flex , Grid , Heading , Icon , Text } from '@invoke-ai/ui-library' ;
1
+ import { Box , Button , ButtonGroup , Flex , Grid , Heading , Icon , Text } from '@invoke-ai/ui-library' ;
2
2
import { useAppDispatch , useAppSelector } from 'app/store/storeHooks' ;
3
3
import { useImageUploadButton } from 'common/hooks/useImageUploadButton' ;
4
4
import { setUpscaleInitialImageDndTarget } from 'features/dnd/dnd' ;
@@ -66,8 +66,8 @@ export const UpscalingLaunchpadPanel = memo(() => {
66
66
67
67
return (
68
68
< Flex flexDir = "column" h = "full" w = "full" alignItems = "center" gap = { 2 } >
69
- < Flex flexDir = "column" w = "full" gap = { 4 } px = { 14 } maxW = { 768 } pt = "20vh" >
70
- < Heading mb = { 4 } > { t ( 'ui.launchpad.upscalingTitle' ) } </ Heading >
69
+ < Flex flexDir = "column" w = "full" gap = { 8 } px = { 14 } maxW = { 768 } pt = "20vh" >
70
+ < Heading > { t ( 'ui.launchpad.upscalingTitle' ) } </ Heading >
71
71
72
72
{ /* Upload Area */ }
73
73
< LaunchpadButton { ...uploadApi . getUploadButtonProps ( ) } position = "relative" gap = { 8 } >
@@ -105,7 +105,7 @@ export const UpscalingLaunchpadPanel = memo(() => {
105
105
106
106
{ /* Guidance text */ }
107
107
{ upscaleInitialImage && (
108
- < Flex bg = "base.800" p = { 4 } borderRadius = "base" border = "1px solid" borderColor = "base.700" mt = { 6 } >
108
+ < Flex bg = "base.800" p = { 4 } borderRadius = "base" border = "1px solid" borderColor = "base.700" >
109
109
< Text variant = "subtext" fontSize = "sm" lineHeight = "1.6" >
110
110
< strong > { t ( 'ui.launchpad.upscaling.readyToUpscale.title' ) } </ strong > { ' ' }
111
111
{ t ( 'ui.launchpad.upscaling.readyToUpscale.description' ) }
@@ -114,55 +114,46 @@ export const UpscalingLaunchpadPanel = memo(() => {
114
114
) }
115
115
116
116
{ /* Controls */ }
117
- < style > { `.launchpad-hide-label .chakra-form__label { display: none !important; }` } </ style >
118
- < Grid gridTemplateColumns = "1fr 1fr" gap = { 10 } alignItems = "start" mt = { upscaleInitialImage ? 8 : 12 } >
117
+ < Grid gridTemplateColumns = "1fr 1fr" gap = { 8 } alignItems = "start" >
119
118
{ /* Left Column: Creativity and Structural Defaults */ }
120
119
< Box >
121
120
< Text fontWeight = "semibold" fontSize = "sm" mb = { 3 } >
122
- Creativity & Structural Defaults
121
+ Creativity & Structure Defaults
123
122
</ Text >
124
- < Flex flexDir = "column" gap = { 2 } >
123
+ < ButtonGroup size = "sm" orientation = "vertical" variant = "outline" w = "full" >
125
124
< Button
126
- size = "sm"
127
- variant = { creativity === - 5 && structure === 5 ? 'solid' : 'outline' }
128
- colorScheme = "base"
125
+ colorScheme = { creativity === - 5 && structure === 5 ? 'invokeBlue' : undefined }
129
126
justifyContent = "center"
130
127
onClick = { onConservativeClick }
131
128
leftIcon = { < PiShieldCheckBold /> }
132
129
>
133
130
Conservative
134
131
</ Button >
135
132
< Button
136
- size = "sm"
137
- variant = { creativity === 0 && structure === 0 ? 'solid' : 'outline' }
138
- colorScheme = "base"
133
+ colorScheme = { creativity === 0 && structure === 0 ? 'invokeBlue' : undefined }
139
134
justifyContent = "center"
140
135
onClick = { onBalancedClick }
141
136
leftIcon = { < PiScalesBold /> }
142
137
>
143
138
Balanced
144
139
</ Button >
145
140
< Button
146
- size = "sm"
147
- variant = { creativity === 5 && structure === - 2 ? 'solid' : 'outline' }
148
- colorScheme = "base"
141
+ colorScheme = { creativity === 5 && structure === - 2 ? 'invokeBlue' : undefined }
149
142
justifyContent = "center"
150
143
onClick = { onCreativeClick }
151
144
leftIcon = { < PiPaletteBold /> }
152
145
>
153
146
Creative
154
147
</ Button >
155
148
< Button
156
- size = "sm"
157
- variant = { creativity === 8 && structure === - 5 ? 'solid' : 'outline' }
158
- colorScheme = "base"
149
+ colorScheme = { creativity === 8 && structure === - 5 ? 'invokeBlue' : undefined }
159
150
justifyContent = "center"
160
151
onClick = { onArtisticClick }
161
152
leftIcon = { < PiSparkleBold /> }
162
153
>
163
154
Artistic
164
155
</ Button >
165
- </ Flex >
156
+ </ ButtonGroup >
166
157
</ Box >
167
158
{ /* Right Column: Description/help text */ }
168
159
< Box >
0 commit comments