From b8834cd2563701dacef2f49862735159b7c6a19c Mon Sep 17 00:00:00 2001 From: stopflock Date: Thu, 9 Oct 2025 10:42:07 -0500 Subject: [PATCH] Account for HiDiPi displays --- lib/dev_config.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dev_config.dart b/lib/dev_config.dart index 44eed81..3c91cd5 100644 --- a/lib/dev_config.dart +++ b/lib/dev_config.dart @@ -16,7 +16,7 @@ const double kDirectionConeHalfAngle = 35.0; // degrees const double kDirectionConeBaseLength = 5; // multiplier const Color kDirectionConeColor = Color(0xD0767474); // FOV cone color const double kDirectionConeOpacity = 0.6; // Fill opacity for FOV cones -const double kDirectionConeBorderWidth = 1.6; // Border stroke width for FOV cones +const double kDirectionConeBorderWidth = 1.6 * MediaQuery.of(context).devicePixelRatio; // Border stroke width for FOV cones // Bottom button bar positioning const double kBottomButtonBarOffset = 4.0; // Distance from screen bottom (above safe area) @@ -89,7 +89,7 @@ const int kAbsoluteMaxZoom = 23; // Node icon configuration const double kNodeIconDiameter = 18.0; -const double kNodeRingThickness = 2.5; +const double kNodeRingThickness = 2.5 * MediaQuery.of(context).devicePixelRatio; const double kNodeDotOpacity = 0.3; // Opacity for the grey dot interior const Color kNodeRingColorReal = Color(0xFF3036F0); // Real nodes from OSM - blue const Color kNodeRingColorMock = Color(0xD0FFFFFF); // Add node mock point - white