From c1b777733fd0d986e070dfff0a831376672d93fa Mon Sep 17 00:00:00 2001 From: nickofolas Date: Mon, 17 Jan 2022 14:22:04 -0600 Subject: [PATCH] Improve clarity of editor tabs --- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 33 ++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index b27b1a2e5..95e0657dd 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -198,7 +198,7 @@ export function Root(props: IProps): React.ReactElement { }); editor.focus(); }); - } catch {} + } catch { } } else if (!options.vim) { // Whem vim mode is disabled vimEditor?.dispose(); @@ -432,7 +432,7 @@ export function Root(props: IProps): React.ReactElement { } try { infLoop(newCode); - } catch (err) {} + } catch (err) { } } function saveScript(scriptToSave: OpenScript): void { @@ -714,7 +714,9 @@ export function Root(props: IProps): React.ReactElement { ref={provided.innerRef} {...provided.droppableProps} style={{ - backgroundColor: snapshot.isDraggingOver ? "#1F2022" : Settings.theme.backgroundprimary, + backgroundColor: snapshot.isDraggingOver + ? Settings.theme.backgroundsecondary + : Settings.theme.backgroundprimary, overflowX: "scroll", }} > @@ -738,12 +740,14 @@ export function Root(props: IProps): React.ReactElement { > @@ -752,10 +756,13 @@ export function Root(props: IProps): React.ReactElement { style={{ maxWidth: "20px", minWidth: "20px", - background: - currentScript?.fileName === openScripts[index].fileName - ? Settings.theme.secondarydark - : "", + ...(currentScript?.fileName === openScripts[index].fileName ? { + background: Settings.theme.button, + color: Settings.theme.primary + } : { + background: Settings.theme.backgroundsecondary, + color: Settings.theme.secondary + }) }} > x