Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat(map in info): fix colors in map attribution

ashilkn093e8a8250c1
diff --git a/lib/ui/map/tile/attribution/map_attribution.dart b/lib/ui/map/tile/attribution/map_attribution.dart
index e1d5bfef1e..f368cffa30 100644
--- a/lib/ui/map/tile/attribution/map_attribution.dart
+++ b/lib/ui/map/tile/attribution/map_attribution.dart
@@ -5,6 +5,7 @@ import "dart:async";
import "package:flutter/material.dart";
import "package:flutter_map/plugin_api.dart";
import "package:photos/extensions/list.dart";
+import "package:photos/theme/colors.dart";
import "package:photos/ui/components/buttons/icon_button_widget.dart";
// Credit: This code is based on the Rich Attribution widget from the flutter_map
@@ -176,6 +177,7 @@ class MapAttributionWidgetState extends State<MapAttributionWidget> {
onTap: close,
icon: Icons.cancel_outlined,
iconButtonType: IconButtonType.primary,
+ iconColor: strokeBaseLight,
))(
context,
() => setState(() => popupExpanded = false),
@@ -186,6 +188,7 @@ class MapAttributionWidgetState extends State<MapAttributionWidget> {
onTap: open,
icon: Icons.info_outlined,
iconButtonType: IconButtonType.primary,
+ iconColor: strokeBaseLight,
))(
context,
() {
diff --git a/lib/ui/map/tile/layers.dart b/lib/ui/map/tile/layers.dart
index 37fbd6daed..2597dddea2 100644
--- a/lib/ui/map/tile/layers.dart
+++ b/lib/ui/map/tile/layers.dart
@@ -67,7 +67,7 @@ class OSMFranceTileAttributes extends StatelessWidget {
alignment: AttributionAlignment.bottomLeft,
showFlutterMapAttribution: false,
permanentHeight: options.permanentHeight,
- popupBackgroundColor: getEnteColorScheme(context).backgroundElevated2,
+ popupBackgroundColor: getEnteColorScheme(context).backgroundElevated,
popupBorderRadius: options.popupBorderRadius,
iconSize: options.iconSize,
attributions: [