Refactored theme common color props and fixed button background delay on theme change
This commit is contained in:
1 parent
313a3af67c
commit
ac48378614
18 files changed
+48
-40
No files matched your search
@@ -22,7 +22,7 @@ const CustomToolTip = ({ active, payload, label }) => {
|
||||
>
|
||||
<Typography
|
||||
sx={{
|
||||
color: theme.palette.common.main,
|
||||
color: theme.palette.primary.main,
|
||||
fontSize: 13,
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -38,12 +38,12 @@ const ImageField = ({ id, src, loading, onChange }) => {
|
||||
border: "dashed",
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
borderColor: isDragging
|
||||
? theme.palette.common.main
|
||||
? theme.palette.primary.main
|
||||
: theme.palette.border.light,
|
||||
borderWidth: "2px",
|
||||
transition: "0.2s",
|
||||
"&:hover": {
|
||||
borderColor: theme.palette.common.main,
|
||||
borderColor: theme.palette.primary.main,
|
||||
backgroundColor: "hsl(215, 87%, 51%, 0.05)",
|
||||
},
|
||||
}}
|
||||
@@ -96,7 +96,7 @@ const ImageField = ({ id, src, loading, onChange }) => {
|
||||
<Typography
|
||||
component="span"
|
||||
fontSize="inherit"
|
||||
color={theme.palette.common.main}
|
||||
color={theme.palette.primary.main}
|
||||
fontWeight={500}
|
||||
>
|
||||
Click to upload
|
||||
|
||||
@@ -28,11 +28,11 @@ const Link = ({ level, label, url }) => {
|
||||
sx: {
|
||||
textDecoration: "underline",
|
||||
textDecorationStyle: "dashed",
|
||||
textDecorationColor: theme.palette.common.main,
|
||||
textDecorationColor: theme.palette.primary.main,
|
||||
textUnderlineOffset: "1px",
|
||||
":hover": {
|
||||
color: theme.palette.text.tertiary,
|
||||
textDecorationColor: theme.palette.common.main,
|
||||
textDecorationColor: theme.palette.primary.main,
|
||||
backgroundColor: theme.palette.background.fill,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -154,7 +154,7 @@ function Sidebar() {
|
||||
color="white"
|
||||
sx={{
|
||||
position: "relative",
|
||||
backgroundColor: theme.palette.common.main,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
userSelect: "none",
|
||||
}}
|
||||
|
||||
@@ -302,7 +302,7 @@ const ProfilePanel = () => {
|
||||
label="Update"
|
||||
onClick={openPictureModal}
|
||||
sx={{
|
||||
color: theme.palette.common.main,
|
||||
color: theme.palette.primary.main,
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
Reference in new issue
Block a user