Skip to content

Commit

Permalink
Remove white labels in dark mode on airspace map
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0wst committed Feb 2, 2025
1 parent 6822ded commit bf2f221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/map/AirspaceMap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
const isDark = isDarkMode();
return L!.divIcon({
className: 'sector-label',
html: `<span style="color: ${isDark ? '#ffffff' : color}; font-weight: 700; font-size: ${
html: `<span style="color: ${color}; font-weight: 700; font-size: ${
isMainArea ? '16px' : '14px'
};">${sector}${isMainArea ? '' : ''}</span>`,
iconAnchor: [25, 12],
Expand Down Expand Up @@ -366,7 +366,7 @@
if (centerPoint) {
const isMainArea = area.short === group.name;
const label = createLabel(area.short, isDark ? '#ffffff' : group.color, isMainArea);
const label = createLabel(area.short, group.color, isMainArea);
L!.marker(centerPoint, { icon: label, interactive: false }).addTo(layerGroup);
}
}
Expand Down

0 comments on commit bf2f221

Please sign in to comment.