diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:14:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:14:47 -0700 |
commit | 7ab97c162e7bf7db765f9dc04634c37a6b3d3151 (patch) | |
tree | da274dd3bc03a2c6a1c5a25ec8029300581b9ced /modern/src/map | |
parent | f0c68ae16eb7b64f5fbd7aa7bf0db7ff8e6c2f92 (diff) | |
download | trackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.tar.gz trackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.tar.bz2 trackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.zip |
Info instead of primary color
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/preloadImages.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/map/core/preloadImages.js b/modern/src/map/core/preloadImages.js index 043de588..31994804 100644 --- a/modern/src/map/core/preloadImages.js +++ b/modern/src/map/core/preloadImages.js @@ -55,7 +55,6 @@ export const mapIconKey = (category) => (mapIcons.hasOwnProperty(category) ? cat export const mapImages = {}; const mapPalette = createPalette({ - primary: { main: indigo[900] }, neutral: { main: grey[500] }, }); @@ -65,7 +64,7 @@ export default async () => { mapImages.direction = await prepareIcon(await loadImage(directionSvg)); await Promise.all(Object.keys(mapIcons).map(async (category) => { const results = []; - ['primary', 'success', 'error', 'neutral'].forEach((color) => { + ['info', 'success', 'error', 'neutral'].forEach((color) => { results.push(loadImage(mapIcons[category]).then((icon) => { mapImages[`${category}-${color}`] = prepareIcon(background, icon, mapPalette[color].main); })); |