From 3ed1fbe9b7c4bcf86094460f26b9221f39489044 Mon Sep 17 00:00:00 2001 From: izawartka <59137928+izawartka@users.noreply.github.com> Date: Thu, 13 Aug 2026 21:29:43 +0200 Subject: [PATCH] Minor styling fixes - Updated Dialog max-width to be either 40em or 80% - Updated TrackHoverInfo icons to change color depending on theme - Updated text-color-secondary and text-color-disabled white theme colors --- src/components/Themes.css | 4 ++-- src/components/dialog/Dialog.css | 2 +- src/components/map/track-hover-info/TrackHoverInfo.css | 6 ++++++ src/icons/track-hover-info/hash.jsx | 2 +- src/icons/track-hover-info/lightning.jsx | 2 +- src/icons/track-hover-info/question-mark.jsx | 2 +- src/icons/track-hover-info/radius.jsx | 4 ++-- src/icons/track-hover-info/slope.jsx | 4 ++-- src/icons/track-hover-info/speed.jsx | 2 +- 9 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/components/Themes.css b/src/components/Themes.css index d037179..8dc0bc9 100644 --- a/src/components/Themes.css +++ b/src/components/Themes.css @@ -31,7 +31,7 @@ .light-mode { --background-color: #f8f8f8; --text-color: #222; - --text-color-secondary: #444; + --text-color-secondary: #333; --layer-color: #0002; --half-layer-color: #0001; --layer-color-hover: #0003; @@ -39,7 +39,7 @@ --layer-color-non-transparent: #ddd; --layer-color-non-transparent-hover: #ccc; --layer-color-non-transparent-disabled: #888; - --text-color-disabled: #666; + --text-color-disabled: #444; --border-color: #888; --text-color-inverted: #eee; --icon-color: #222; diff --git a/src/components/dialog/Dialog.css b/src/components/dialog/Dialog.css index c506a67..90dfd1f 100644 --- a/src/components/dialog/Dialog.css +++ b/src/components/dialog/Dialog.css @@ -20,7 +20,7 @@ padding: 1em; position: relative; min-width: 15em; - max-width: 80%; + max-width: min(40em, 80%); } .dialog.wide { diff --git a/src/components/map/track-hover-info/TrackHoverInfo.css b/src/components/map/track-hover-info/TrackHoverInfo.css index b6e71d8..97b662b 100644 --- a/src/components/map/track-hover-info/TrackHoverInfo.css +++ b/src/components/map/track-hover-info/TrackHoverInfo.css @@ -17,6 +17,12 @@ height: 1.2em; } +.track-hover-info-popup-table svg path, +.track-hover-info-popup-table svg g { + stroke: var(--text-color-disabled); + fill: var(--text-color-disabled); +} + .track-hover-info-popup-table { border-spacing: 2px; } diff --git a/src/icons/track-hover-info/hash.jsx b/src/icons/track-hover-info/hash.jsx index 4cf51c8..b86998c 100644 --- a/src/icons/track-hover-info/hash.jsx +++ b/src/icons/track-hover-info/hash.jsx @@ -1,6 +1,6 @@ export const HashIcon = ({color = '#aaa', strokeWidth = 3}) => ( - + diff --git a/src/icons/track-hover-info/lightning.jsx b/src/icons/track-hover-info/lightning.jsx index c2b15ed..f614fac 100644 --- a/src/icons/track-hover-info/lightning.jsx +++ b/src/icons/track-hover-info/lightning.jsx @@ -1,7 +1,7 @@ export const LightningIcon = ({color = '#aaa', strokeWidth = 3}) => ( - + diff --git a/src/icons/track-hover-info/question-mark.jsx b/src/icons/track-hover-info/question-mark.jsx index 325e355..1dca4a1 100644 --- a/src/icons/track-hover-info/question-mark.jsx +++ b/src/icons/track-hover-info/question-mark.jsx @@ -1,5 +1,5 @@ export const QuestionMarkIcon = ({color = '#aaa', strokeWidth = 3}) => ( - + ); \ No newline at end of file diff --git a/src/icons/track-hover-info/radius.jsx b/src/icons/track-hover-info/radius.jsx index ae6fa8c..ebafd50 100644 --- a/src/icons/track-hover-info/radius.jsx +++ b/src/icons/track-hover-info/radius.jsx @@ -1,6 +1,6 @@ -export const RadiusIcon = ({color = '#000', strokeWidth = 3}) => ( +export const RadiusIcon = ({color = '#aaa', strokeWidth = 3}) => ( - + diff --git a/src/icons/track-hover-info/slope.jsx b/src/icons/track-hover-info/slope.jsx index 38cced7..b6bc920 100644 --- a/src/icons/track-hover-info/slope.jsx +++ b/src/icons/track-hover-info/slope.jsx @@ -1,6 +1,6 @@ -export const SlopeIcon = ({color = '#000', strokeWidth = 3}) => ( +export const SlopeIcon = ({color = '#aaa', strokeWidth = 3}) => ( - + diff --git a/src/icons/track-hover-info/speed.jsx b/src/icons/track-hover-info/speed.jsx index 19611fc..1463b81 100644 --- a/src/icons/track-hover-info/speed.jsx +++ b/src/icons/track-hover-info/speed.jsx @@ -1,6 +1,6 @@ export const SpeedIcon = ({color = '#aaa', strokeWidth = 3}) => ( - +