feat: Update location pointer colors to use theme color for better consistency

This commit is contained in:
Janez T
2025-10-28 19:15:45 +01:00
parent da3302b030
commit 002b5f4da0

View File

@@ -38,12 +38,12 @@ class LocationPointer extends StatelessWidget {
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
// Outer accuracy circle (very subtle, light blue) // Outer accuracy circle (very subtle, uses theme color)
Container( Container(
width: size * 0.6, width: size * 0.6,
height: size * 0.6, height: size * 0.6,
decoration: BoxDecoration( decoration: BoxDecoration(
color: const Color(0xFF4285F4).withValues(alpha: 0.2), color: color.withValues(alpha: 0.2),
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
), ),
@@ -112,7 +112,7 @@ class _NavigationPointerPainter extends CustomPainter {
canvas.drawPath(arrowPath, shadowPaint); canvas.drawPath(arrowPath, shadowPaint);
canvas.restore(); canvas.restore();
// Left side (lighter cyan) - #75D5F0 // Left side (lighter - 70% opacity of theme color)
final leftSidePath = Path(); final leftSidePath = Path();
leftSidePath.moveTo(center.dx, height * 0.08); leftSidePath.moveTo(center.dx, height * 0.08);
leftSidePath.lineTo(center.dx - width * 0.42, height * 0.92); leftSidePath.lineTo(center.dx - width * 0.42, height * 0.92);
@@ -120,11 +120,11 @@ class _NavigationPointerPainter extends CustomPainter {
leftSidePath.close(); leftSidePath.close();
final leftPaint = Paint() final leftPaint = Paint()
..color = const Color(0xFF75D5F0) ..color = color.withValues(alpha: 0.7)
..style = PaintingStyle.fill; ..style = PaintingStyle.fill;
canvas.drawPath(leftSidePath, leftPaint); canvas.drawPath(leftSidePath, leftPaint);
// Right side (darker cyan) - #00B8E6 // Right side (darker - full theme color)
final rightSidePath = Path(); final rightSidePath = Path();
rightSidePath.moveTo(center.dx, height * 0.08); rightSidePath.moveTo(center.dx, height * 0.08);
rightSidePath.lineTo(center.dx, height * 0.70); rightSidePath.lineTo(center.dx, height * 0.70);
@@ -132,7 +132,7 @@ class _NavigationPointerPainter extends CustomPainter {
rightSidePath.close(); rightSidePath.close();
final rightPaint = Paint() final rightPaint = Paint()
..color = const Color(0xFF00B8E6) ..color = color
..style = PaintingStyle.fill; ..style = PaintingStyle.fill;
canvas.drawPath(rightSidePath, rightPaint); canvas.drawPath(rightSidePath, rightPaint);
@@ -145,9 +145,9 @@ class _NavigationPointerPainter extends CustomPainter {
canvas.drawPath(arrowPath, borderPaint); canvas.drawPath(arrowPath, borderPaint);
} else { } else {
// No heading available - draw a blue circle with white border // No heading available - draw a circle with white border (uses theme color)
final circlePaint = Paint() final circlePaint = Paint()
..color = const Color(0xFF4285F4) ..color = color
..style = PaintingStyle.fill; ..style = PaintingStyle.fill;
canvas.drawCircle(center, width * 0.4, circlePaint); canvas.drawCircle(center, width * 0.4, circlePaint);