Skip to content

Commit e6118fe

Browse files
committed
add basmap average color to theme
1 parent 6f3b759 commit e6118fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/app/Theme.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ declare module '@mui/material/styles' {
1717
interface Theme {
1818
map: {
1919
basemapTileUrl: string;
20+
basemapTileOverallColor?: string;
2021
routeColor: string;
2122
routeTextColor: string;
2223
};
@@ -25,6 +26,7 @@ declare module '@mui/material/styles' {
2526
interface ThemeOptions {
2627
map?: {
2728
basemapTileUrl?: string;
29+
basemapTileOverallColor?: string;
2830
routeColor?: string;
2931
routeTextColor?: string;
3032
};
@@ -138,6 +140,7 @@ export const getTheme = (mode: ThemeModeEnum): Theme => {
138140
basemapTileUrl: isLightMode
139141
? 'https://a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png'
140142
: 'https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png',
143+
basemapTileOverallColor: isLightMode ? '#f6f6f6' : '#0d0d0d',
141144
routeColor: chosenPalette.background.default,
142145
routeTextColor: chosenPalette.text.primary,
143146
},

0 commit comments

Comments
 (0)