diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-26 17:40:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-26 17:40:59 -0700 |
commit | 778d626e5ca58f62b75ef070c5c347afa89a6de4 (patch) | |
tree | afc2821805ddd65bfb24b65cbd60cc4239eee3c9 /modern/src/common/theme/components.js | |
parent | e5d05451febf482f1192b2a4ba49b9275e236722 (diff) | |
download | trackermap-web-778d626e5ca58f62b75ef070c5c347afa89a6de4.tar.gz trackermap-web-778d626e5ca58f62b75ef070c5c347afa89a6de4.tar.bz2 trackermap-web-778d626e5ca58f62b75ef070c5c347afa89a6de4.zip |
Dark mode support (fix #1129)
Diffstat (limited to 'modern/src/common/theme/components.js')
-rw-r--r-- | modern/src/common/theme/components.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modern/src/common/theme/components.js b/modern/src/common/theme/components.js index 572f876e..56a2ac75 100644 --- a/modern/src/common/theme/components.js +++ b/modern/src/common/theme/components.js @@ -1,5 +1,3 @@ -import { grey } from '@mui/material/colors'; - export default { MuiUseMediaQuery: { defaultProps: { @@ -8,9 +6,9 @@ export default { }, MuiOutlinedInput: { styleOverrides: { - root: { - backgroundColor: grey[50], - }, + root: ({ theme }) => ({ + backgroundColor: theme.palette.background.default, + }), }, }, MuiButton: { |