Skip to content

Commit

Permalink
Fixed loading button & progress control's opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzlamateen committed May 16, 2023
1 parent 08c6b13 commit 3f78766
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions src/renderer/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ const theme = createTheme({
// // },
// }
// },
MuiCircularProgress: {
styleOverrides: {
root: {
color: 'var(--textColor)'
}
}
},
MuiLinearProgress: {
styleOverrides: {
root: {
color: 'var(--textColor)'
}
}
},
MuiIconButton: {
styleOverrides: {
root: {
Expand All @@ -188,21 +202,21 @@ const theme = createTheme({
},
'&.Mui-disabled': {
color: 'var(--textColor)',
opacity: 0.3
opacity: 0.5
}
},
colorPrimary: {
backgroundColor: 'transparent',
color: 'var(--textColor)',
'&:hover': {
opacity: '0.7'
opacity: 0.7
}
},
colorSecondary: {
backgroundColor: 'transparent',
color: 'var(--textColor)',
'&:hover': {
opacity: '0.7'
opacity: 0.7
}
}
}
Expand Down Expand Up @@ -488,7 +502,7 @@ const theme = createTheme({

'&.Mui-disabled': {
color: 'var(--textColor)',
opacity: 0.3
opacity: 0.5
}
},
//@ts-ignore
Expand All @@ -506,7 +520,7 @@ const theme = createTheme({
backgroundColor: 'transparent',
borderColor: 'var(--buttonOutlined)',
color: 'var(--textColor)',
opacity: 0.3
opacity: 0.5
}
},
contained: {
Expand All @@ -518,7 +532,10 @@ const theme = createTheme({
},
'&:disabled': {
backgroundColor: 'var(--buttonFilled)',
opacity: 0.3
opacity: 0.5
},
'&:disabled.MuiLoadingButton-root': {
opacity: 0.9
}
},
outlinedPrimary: {
Expand All @@ -527,7 +544,7 @@ const theme = createTheme({
},
'&:disabled': {
boxShadow: '0 0 10px var(--buttonOutlined)',
opacity: 0.3
opacity: 0.5
}
},
outlinedSecondary: {
Expand All @@ -536,7 +553,7 @@ const theme = createTheme({
},
'&:disabled': {
boxShadow: '0 0 10px var(--buttonOutlined)',
opacity: 0.3
opacity: 0.5
}
}
}
Expand Down

0 comments on commit 3f78766

Please sign in to comment.