Skip to content

Commit aeab7d0

Browse files
feat(ui): tidy upscaling tab launchapd
1 parent 3f1b2c3 commit aeab7d0

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/LaunchpadButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export const LaunchpadButton = memo(
1414
justifyContent="left"
1515
borderWidth={1}
1616
borderRadius="base"
17-
p={4}
17+
pe={6}
18+
pb={6}
19+
ps={8}
1820
pt={6}
1921
gap={2}
2022
w="full"

invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/UpscalingLaunchpadPanel.tsx

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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';
22
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
33
import { useImageUploadButton } from 'common/hooks/useImageUploadButton';
44
import { setUpscaleInitialImageDndTarget } from 'features/dnd/dnd';
@@ -66,8 +66,8 @@ export const UpscalingLaunchpadPanel = memo(() => {
6666

6767
return (
6868
<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>
7171

7272
{/* Upload Area */}
7373
<LaunchpadButton {...uploadApi.getUploadButtonProps()} position="relative" gap={8}>
@@ -105,7 +105,7 @@ export const UpscalingLaunchpadPanel = memo(() => {
105105

106106
{/* Guidance text */}
107107
{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">
109109
<Text variant="subtext" fontSize="sm" lineHeight="1.6">
110110
<strong>{t('ui.launchpad.upscaling.readyToUpscale.title')}</strong>{' '}
111111
{t('ui.launchpad.upscaling.readyToUpscale.description')}
@@ -114,55 +114,46 @@ export const UpscalingLaunchpadPanel = memo(() => {
114114
)}
115115

116116
{/* 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">
119118
{/* Left Column: Creativity and Structural Defaults */}
120119
<Box>
121120
<Text fontWeight="semibold" fontSize="sm" mb={3}>
122-
Creativity & Structural Defaults
121+
Creativity & Structure Defaults
123122
</Text>
124-
<Flex flexDir="column" gap={2}>
123+
<ButtonGroup size="sm" orientation="vertical" variant="outline" w="full">
125124
<Button
126-
size="sm"
127-
variant={creativity === -5 && structure === 5 ? 'solid' : 'outline'}
128-
colorScheme="base"
125+
colorScheme={creativity === -5 && structure === 5 ? 'invokeBlue' : undefined}
129126
justifyContent="center"
130127
onClick={onConservativeClick}
131128
leftIcon={<PiShieldCheckBold />}
132129
>
133130
Conservative
134131
</Button>
135132
<Button
136-
size="sm"
137-
variant={creativity === 0 && structure === 0 ? 'solid' : 'outline'}
138-
colorScheme="base"
133+
colorScheme={creativity === 0 && structure === 0 ? 'invokeBlue' : undefined}
139134
justifyContent="center"
140135
onClick={onBalancedClick}
141136
leftIcon={<PiScalesBold />}
142137
>
143138
Balanced
144139
</Button>
145140
<Button
146-
size="sm"
147-
variant={creativity === 5 && structure === -2 ? 'solid' : 'outline'}
148-
colorScheme="base"
141+
colorScheme={creativity === 5 && structure === -2 ? 'invokeBlue' : undefined}
149142
justifyContent="center"
150143
onClick={onCreativeClick}
151144
leftIcon={<PiPaletteBold />}
152145
>
153146
Creative
154147
</Button>
155148
<Button
156-
size="sm"
157-
variant={creativity === 8 && structure === -5 ? 'solid' : 'outline'}
158-
colorScheme="base"
149+
colorScheme={creativity === 8 && structure === -5 ? 'invokeBlue' : undefined}
159150
justifyContent="center"
160151
onClick={onArtisticClick}
161152
leftIcon={<PiSparkleBold />}
162153
>
163154
Artistic
164155
</Button>
165-
</Flex>
156+
</ButtonGroup>
166157
</Box>
167158
{/* Right Column: Description/help text */}
168159
<Box>

0 commit comments

Comments
 (0)