[fix](trx-frontend-http): AIS map markers use scheme lead color (--accent-green)
Use --accent-green (the primary/lead accent color) for AIS vessel markers and tracks instead of a hardcoded or red-based color, so they match the active buttons and other prominent UI elements for every color scheme. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -5014,7 +5014,7 @@ function syncSelectedAisTrackVisibility() {
|
||||
}
|
||||
|
||||
function getAisAccentColor() {
|
||||
return getComputedStyle(document.documentElement).getPropertyValue("--ais-accent").trim() || "#00aacc";
|
||||
return getComputedStyle(document.documentElement).getPropertyValue("--accent-green").trim() || "#c24b1a";
|
||||
}
|
||||
|
||||
function aisMarkerOptionsFromMessage(msg) {
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
--accent-green: #c24b1a;
|
||||
--accent-yellow: #f0ad4e;
|
||||
--accent-red: #e55353;
|
||||
--ais-accent: #00aacc;
|
||||
--control-height: 2.6rem;
|
||||
--jog-hi: #243a5b;
|
||||
--jog-lo: #14233a;
|
||||
@@ -47,7 +46,6 @@
|
||||
--accent-green: #b04317;
|
||||
--accent-yellow: #b57600;
|
||||
--accent-red: #cf3f3f;
|
||||
--ais-accent: #0088aa;
|
||||
--jog-hi: #e6edf8;
|
||||
--jog-lo: #cdd9eb;
|
||||
--jog-shadow: rgba(58, 79, 110, 0.18);
|
||||
|
||||
Reference in New Issue
Block a user