From 0f5c9bde1c60abff0de62c8d22624b074d285db3 Mon Sep 17 00:00:00 2001 From: YeonV Date: Thu, 26 Sep 2024 03:23:13 +0200 Subject: [PATCH] adjust styling for black and white theme --- src/components/AddButton/AddButton.tsx | 8 +-- src/components/Bars/BarTop.tsx | 92 ++++++++++++++++++++------ src/components/Tours/TourHome.tsx | 7 +- src/pages/Home/Dashboard.tsx | 20 +++--- src/pages/Home/Gauge.tsx | 4 +- src/store/ui/storeUI.tsx | 9 +++ 6 files changed, 104 insertions(+), 36 deletions(-) diff --git a/src/components/AddButton/AddButton.tsx b/src/components/AddButton/AddButton.tsx index ec7385cf..1d574a87 100644 --- a/src/components/AddButton/AddButton.tsx +++ b/src/components/AddButton/AddButton.tsx @@ -1,4 +1,4 @@ -import { Fab, IconButton } from '@mui/material' +import { Fab, IconButton, useTheme } from '@mui/material' import { AddSharp as Add, ElectricalServices } from '@mui/icons-material' import { useState } from 'react' import useStore from '../../store/useStore' @@ -16,7 +16,7 @@ import { const AddButton = ({ className, style, setBackdrop, sx }: AddButtonProps) => { const classes = useStyles() - + const theme = useTheme() const features = useStore((state) => state.features) const openAddScene = useStore((state) => state.setDialogOpenAddScene) const openAddDevice = useStore((state) => state.setDialogOpenAddDevice) @@ -80,12 +80,12 @@ const AddButton = ({ className, style, setBackdrop, sx }: AddButtonProps) => { sx={sx} > - + ({ '& .MuiBadge-badge': { @@ -81,6 +86,7 @@ const LeftButtons = ( color="inherit" startIcon={} onClick={() => history(-1)} + sx={{ mt: .9 }} > Back @@ -121,7 +127,8 @@ const Title = ( pathname: string, latestTag: string, updateAvailable: boolean, - virtuals: any + virtuals: any, + frConfig: Record ) => { const newVerOnline = latestTag.replace('v', '').includes('-b') @@ -134,13 +141,13 @@ const Title = ( return ( <> {`LedFx v${pkg.version}`} - {!process.env.MS_STORE && newVerOnline ? ( + {!process.env.MS_STORE && newVerOnline && frConfig.updateUrl ? (