From 1bd37ff86e5d5e2397b77c10fcc90e80bfbfce49 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 31 Jul 2021 11:17:58 +0200 Subject: refactoring --- components/config.ts | 2 +- components/tweaks.tsx | 33 ++++++++++++++++++--------------- 2 files changed, 19 insertions(+), 16 deletions(-) (limited to 'components') diff --git a/components/config.ts b/components/config.ts index fdb4145..c2f8ff5 100644 --- a/components/config.ts +++ b/components/config.ts @@ -73,7 +73,7 @@ export const initialVisuals = { nodeHighlight: '', linkHighlight: 'purple.500', backgroundColor: 'white', - emacsNodeColor: 'grey.800', + emacsNodeColor: 'gray.800', labelTextColor: 'black', labelBackgroundColor: 'white', labelBackgroundOpacity: 0.7, diff --git a/components/tweaks.tsx b/components/tweaks.tsx index b2b0aaf..b5ce2ec 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -37,6 +37,7 @@ import { Collapse, Grid, Portal, + SlideFade, } from '@chakra-ui/react' import React, { useState, useContext } from 'react' import Scrollbars from 'react-custom-scrollbars-2' @@ -102,20 +103,22 @@ export const Tweaks = (props: TweakProps) => { ] return ( <> - - } - onClick={() => setShowTweaks(true)} - /> - - + + + } + onClick={() => setShowTweaks(true)} + /> + + + { - + ) } -- cgit v1.2.3