From 838e1b969162b73b1bbafab75203998e7bf60979 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 16 Apr 2022 16:08:03 -0700 Subject: Clean up palette and colors --- modern/src/map/Map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/map/Map.js') diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index bbfe4764..deb2ec9b 100644 --- a/modern/src/map/Map.js +++ b/modern/src/map/Map.js @@ -48,9 +48,9 @@ const initMap = async () => { }); await Promise.all(deviceCategories.map(async (category) => { const results = []; - ['green', 'red', 'gray'].forEach((color) => { + ['positive', 'negative', 'neutral'].forEach((color) => { results.push(loadImage(`images/icon/${category}.svg`).then((icon) => { - map.addImage(`${category}-${color}`, prepareIcon(background, icon, palette.common[color]), { + map.addImage(`${category}-${color}`, prepareIcon(background, icon, palette.colors[color]), { pixelRatio: window.devicePixelRatio, }); })); -- cgit v1.2.3