diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-19 15:42:58 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-19 21:38:23 +0200 |
commit | 6c32ec1af90cf7df179a688617a828eddcff8052 (patch) | |
tree | b724173cd6ef1b622f6ae86054769ecf9fca4b81 /subprojects/frontend/src/editor | |
parent | feat(frontend): responsive editor styling (diff) | |
download | refinery-6c32ec1af90cf7df179a688617a828eddcff8052.tar.gz refinery-6c32ec1af90cf7df179a688617a828eddcff8052.tar.zst refinery-6c32ec1af90cf7df179a688617a828eddcff8052.zip |
refactor(frontend): update theme
Diffstat (limited to 'subprojects/frontend/src/editor')
4 files changed, 8 insertions, 5 deletions
diff --git a/subprojects/frontend/src/editor/EditorButtons.tsx b/subprojects/frontend/src/editor/EditorButtons.tsx index bed6afa8..735531e8 100644 --- a/subprojects/frontend/src/editor/EditorButtons.tsx +++ b/subprojects/frontend/src/editor/EditorButtons.tsx | |||
@@ -53,7 +53,7 @@ function EditorButtons(): JSX.Element { | |||
53 | > | 53 | > |
54 | <RedoIcon fontSize="small" /> | 54 | <RedoIcon fontSize="small" /> |
55 | </IconButton> | 55 | </IconButton> |
56 | <ToggleButtonGroup size="small" sx={{ mx: 1 }}> | 56 | <ToggleButtonGroup size="small" className="rounded" sx={{ mx: 1 }}> |
57 | <ToggleButton | 57 | <ToggleButton |
58 | selected={editorStore.showLineNumbers} | 58 | selected={editorStore.showLineNumbers} |
59 | onClick={() => editorStore.toggleLineNumbers()} | 59 | onClick={() => editorStore.toggleLineNumbers()} |
diff --git a/subprojects/frontend/src/editor/EditorTheme.ts b/subprojects/frontend/src/editor/EditorTheme.ts index fe5ba58e..d8680070 100644 --- a/subprojects/frontend/src/editor/EditorTheme.ts +++ b/subprojects/frontend/src/editor/EditorTheme.ts | |||
@@ -95,7 +95,8 @@ export default styled('div', { | |||
95 | fontStyle: 'italic', | 95 | fontStyle: 'italic', |
96 | }, | 96 | }, |
97 | '.tok-problem-containment': { | 97 | '.tok-problem-containment': { |
98 | fontWeight: 700, | 98 | fontWeight: theme.typography.fontWeightBold, |
99 | textDecorationSkipInk: 'none', | ||
99 | }, | 100 | }, |
100 | '.tok-problem-error': { | 101 | '.tok-problem-error': { |
101 | '&, & .tok-typeName': { | 102 | '&, & .tok-typeName': { |
@@ -278,7 +279,7 @@ export default styled('div', { | |||
278 | '&[aria-selected="true"]': { | 279 | '&[aria-selected="true"]': { |
279 | color: theme.palette.text.primary, | 280 | color: theme.palette.text.primary, |
280 | background: 'transparent', | 281 | background: 'transparent', |
281 | fontWeight: 700, | 282 | fontWeight: theme.typography.fontWeightMedium, |
282 | }, | 283 | }, |
283 | ':hover': { | 284 | ':hover': { |
284 | background: alpha( | 285 | background: alpha( |
diff --git a/subprojects/frontend/src/editor/GenerateButton.tsx b/subprojects/frontend/src/editor/GenerateButton.tsx index 14258723..4b998af6 100644 --- a/subprojects/frontend/src/editor/GenerateButton.tsx +++ b/subprojects/frontend/src/editor/GenerateButton.tsx | |||
@@ -24,8 +24,9 @@ function GenerateButton(): JSX.Element { | |||
24 | return ( | 24 | return ( |
25 | <Button | 25 | <Button |
26 | aria-label={`Select next diagnostic out of ${summary}`} | 26 | aria-label={`Select next diagnostic out of ${summary}`} |
27 | color="error" | ||
28 | onClick={() => editorStore.nextDiagnostic()} | 27 | onClick={() => editorStore.nextDiagnostic()} |
28 | color="error" | ||
29 | className="rounded" | ||
29 | > | 30 | > |
30 | {summary} | 31 | {summary} |
31 | </Button> | 32 | </Button> |
@@ -35,6 +36,7 @@ function GenerateButton(): JSX.Element { | |||
35 | return ( | 36 | return ( |
36 | <Button | 37 | <Button |
37 | color={warningCount > 0 ? 'warning' : 'primary'} | 38 | color={warningCount > 0 ? 'warning' : 'primary'} |
39 | className="rounded" | ||
38 | startIcon={<PlayArrowIcon />} | 40 | startIcon={<PlayArrowIcon />} |
39 | > | 41 | > |
40 | {summary === '' ? GENERATE_LABEL : `${GENERATE_LABEL} (${summary})`} | 42 | {summary === '' ? GENERATE_LABEL : `${GENERATE_LABEL} (${summary})`} |
diff --git a/subprojects/frontend/src/editor/SearchToolbar.tsx b/subprojects/frontend/src/editor/SearchToolbar.tsx index a5925328..45f1336d 100644 --- a/subprojects/frontend/src/editor/SearchToolbar.tsx +++ b/subprojects/frontend/src/editor/SearchToolbar.tsx | |||
@@ -181,7 +181,7 @@ function SearchToolbar({ store }: { store: SearchPanelStore }): JSX.Element { | |||
181 | aria-label="Show replace options" | 181 | aria-label="Show replace options" |
182 | aria-controls={replaceId} | 182 | aria-controls={replaceId} |
183 | size="small" | 183 | size="small" |
184 | sx={{ borderRadius: '100%' }} | 184 | className="iconOnly" |
185 | > | 185 | > |
186 | <FindReplaceIcon fontSize="small" /> | 186 | <FindReplaceIcon fontSize="small" /> |
187 | </ToggleButton> | 187 | </ToggleButton> |