aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/editor/EditorTheme.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-03 03:34:31 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-09 00:07:39 +0100
commitd02125201f39a0620aedab9f350cff84fca22bd3 (patch)
tree1b2c829323572782ebc792837a4307d72f2e46bf /subprojects/frontend/src/editor/EditorTheme.ts
parentrefactor(frontend): scrollbar improvements (diff)
downloadrefinery-d02125201f39a0620aedab9f350cff84fca22bd3.tar.gz
refinery-d02125201f39a0620aedab9f350cff84fca22bd3.tar.zst
refinery-d02125201f39a0620aedab9f350cff84fca22bd3.zip
refactor(frontend): theme improvements
Diffstat (limited to 'subprojects/frontend/src/editor/EditorTheme.ts')
-rw-r--r--subprojects/frontend/src/editor/EditorTheme.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/subprojects/frontend/src/editor/EditorTheme.ts b/subprojects/frontend/src/editor/EditorTheme.ts
index e9907e83..3f2a3bff 100644
--- a/subprojects/frontend/src/editor/EditorTheme.ts
+++ b/subprojects/frontend/src/editor/EditorTheme.ts
@@ -161,7 +161,7 @@ export default styled('div', {
161 background: 'transparent', 161 background: 'transparent',
162 }, 162 },
163 '.cm-cursor, .cm-cursor-primary': { 163 '.cm-cursor, .cm-cursor-primary': {
164 borderLeft: `2px solid ${theme.palette.highlight.cursor}`, 164 borderLeft: `2px solid ${theme.palette.info.main}`,
165 }, 165 },
166 '.cm-selectionBackground': { 166 '.cm-selectionBackground': {
167 background: theme.palette.highlight.selection, 167 background: theme.palette.highlight.selection,
@@ -265,7 +265,7 @@ export default styled('div', {
265 }, 265 },
266 '.cm-indentation-marker': { 266 '.cm-indentation-marker': {
267 display: 'inline-block', 267 display: 'inline-block',
268 boxShadow: `1px 0 0 ${theme.palette.highlight.lineNumber} inset`, 268 boxShadow: `1px 0 0 ${theme.palette.text.disabled} inset`,
269 '&.active': { 269 '&.active': {
270 boxShadow: `1px 0 0 ${theme.palette.text.primary} inset`, 270 boxShadow: `1px 0 0 ${theme.palette.text.primary} inset`,
271 }, 271 },
@@ -273,7 +273,7 @@ export default styled('div', {
273 '.cm-scroller-selection': { 273 '.cm-scroller-selection': {
274 position: 'absolute', 274 position: 'absolute',
275 right: 0, 275 right: 0,
276 boxShadow: `0 2px 0 ${theme.palette.highlight.cursor} inset`, 276 boxShadow: `0 2px 0 ${theme.palette.info.main} inset`,
277 zIndex: 200, 277 zIndex: 200,
278 }, 278 },
279 '.cm-scroller-occurrence': { 279 '.cm-scroller-occurrence': {
@@ -286,7 +286,7 @@ export default styled('div', {
286 const lineNumberStyle: CSSObject = { 286 const lineNumberStyle: CSSObject = {
287 '.cm-lineNumbers': { 287 '.cm-lineNumbers': {
288 ...editorFontStyle, 288 ...editorFontStyle,
289 color: theme.palette.highlight.lineNumber, 289 color: theme.palette.text.disabled,
290 ...(!showLineNumbers && { 290 ...(!showLineNumbers && {
291 display: 'none !important', 291 display: 'none !important',
292 }), 292 }),
@@ -426,7 +426,7 @@ export default styled('div', {
426 '&[aria-selected="true"]': { 426 '&[aria-selected="true"]': {
427 color: theme.palette.text.primary, 427 color: theme.palette.text.primary,
428 background: 'transparent', 428 background: 'transparent',
429 fontWeight: theme.typography.fontWeightMedium, 429 fontWeight: theme.typography.fontWeightBold,
430 }, 430 },
431 ':hover': { 431 ':hover': {
432 background: alpha( 432 background: alpha(