Skip to content

Commit 44ecdda

Browse files
psychedelicioushipsterusername
authored andcommitted
feat(ui): style Settings/Control Layers tabs like tabs
1 parent 2684789 commit 44ecdda

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

invokeai/frontend/web/src/features/ui/components/ParametersPanelTextToImage.tsx

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,16 @@ const overlayScrollbarsStyles: CSSProperties = {
2424
width: '100%',
2525
};
2626

27-
const unselectedStyles: ChakraProps['sx'] = {
28-
bg: 'none',
29-
color: 'base.300',
27+
const baseStyles: ChakraProps['sx'] = {
3028
fontWeight: 'semibold',
3129
fontSize: 'sm',
32-
w: '50%',
33-
borderWidth: 1,
34-
borderRadius: 'base',
30+
color: 'base.300',
3531
};
3632

3733
const selectedStyles: ChakraProps['sx'] = {
34+
borderColor: 'base.800',
35+
borderBottomColor: 'base.900',
3836
color: 'invokeBlue.300',
39-
borderColor: 'invokeBlueAlpha.400',
40-
_hover: {
41-
color: 'invokeBlue.200',
42-
},
43-
};
44-
45-
const hoverStyles: ChakraProps['sx'] = {
46-
bg: 'base.850',
47-
color: 'base.100',
4837
};
4938

5039
const ParametersPanelTextToImage = () => {
@@ -61,12 +50,12 @@ const ParametersPanelTextToImage = () => {
6150
<OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayScrollbarsParams.options}>
6251
<Flex gap={2} flexDirection="column" h="full" w="full">
6352
{isSDXL ? <SDXLPrompts /> : <Prompts />}
64-
<Tabs variant="unstyled" display="flex" flexDir="column" w="full" h="full" gap={2}>
65-
<TabList gap={2}>
66-
<Tab _hover={hoverStyles} _selected={selectedStyles} sx={unselectedStyles}>
53+
<Tabs variant="enclosed" display="flex" flexDir="column" w="full" h="full" gap={2}>
54+
<TabList gap={2} fontSize="sm" borderColor="base.800">
55+
<Tab sx={baseStyles} _selected={selectedStyles}>
6756
{t('common.settingsLabel')}
6857
</Tab>
69-
<Tab _hover={hoverStyles} _selected={selectedStyles} sx={unselectedStyles}>
58+
<Tab sx={baseStyles} _selected={selectedStyles}>
7059
{controlLayersTitle}
7160
</Tab>
7261
</TabList>

0 commit comments

Comments
 (0)