Skip to content

Commit 16afefa

Browse files
authored
refactor: Update "Prettify" button icons; Improve layout in the status bar. (#327)
1 parent 05ec53b commit 16afefa

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/StatusBar/StatusBarToggleButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const StatusBarToggleButton = ({
5252
<span>
5353
<IconButton
5454
size={"sm"}
55-
variant={"outlined"}
55+
variant={"soft"}
5656
aria-pressed={isActive ?
5757
"true" :
5858
"false"}

src/components/StatusBar/index.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ import React from "react";
22

33
import {
44
Button,
5+
Divider,
56
Sheet,
67
Tooltip,
78
Typography,
89
} from "@mui/joy";
910

10-
import AutoFixHighRoundedIcon from "@mui/icons-material/AutoFixHighRounded";
11-
import AutoFixOffRoundedIcon from "@mui/icons-material/AutoFixOffRounded";
11+
import AutoFixHighIcon from "@mui/icons-material/AutoFixHigh";
12+
import AutoFixOffIcon from "@mui/icons-material/AutoFixOff";
1213

1314
import useLogFileStore from "../../stores/logFileStore";
1415
import useUiStore from "../../stores/uiStore";
@@ -86,16 +87,19 @@ const StatusBar = () => {
8687
</Button>
8788
</span>
8889
</Tooltip>
90+
<Divider orientation={"vertical"}/>
8991

9092
<LogLevelSelect/>
93+
<Divider orientation={"vertical"}/>
9194

9295
<StatusBarToggleButton
9396
data-action-name={ACTION_NAME.TOGGLE_PRETTIFY}
9497
disabled={isPrettifyButtonDisabled}
9598
isActive={isPrettified}
99+
tooltipPlacement={"top-end"}
96100
icons={{
97-
active: <AutoFixHighRoundedIcon/>,
98-
inactive: <AutoFixOffRoundedIcon/>,
101+
active: <AutoFixHighIcon/>,
102+
inactive: <AutoFixOffIcon/>,
99103
}}
100104
tooltipTitle={false === isPrettified ?
101105
"Turn on Prettify" :

0 commit comments

Comments
 (0)