Fix stale map labels, avatar initials and offline bubble widths
- Map node labels follow light/dark theme changes. - Avatar initials use only letters and digits; hop avatars fall back to the hash prefix. - Incoming channel bubbles are the same width connected and offline. - Day separators wrap instead of overflowing with large text.
This commit is contained in:
1 parent
34ea0cb7ca
commit
92dadb0d3a
12 files changed
+642
-48
No files matched your search
@@ -1198,6 +1198,9 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
|
||||
showOtherNodes: settings.mapShowOtherNodes,
|
||||
isBuildingPathTrace: _isBuildingPathTrace,
|
||||
clusterNodes: settings.mapClusterNodes,
|
||||
// Node labels bake in the overlay colors, so a light/dark or theme
|
||||
// switch must rebuild them.
|
||||
colorScheme: Theme.of(context).colorScheme,
|
||||
);
|
||||
if (key != _nodeMarkersCacheKey) {
|
||||
_nodeMarkersCacheKey = key;
|
||||
@@ -4385,6 +4388,7 @@ class _NodeMarkersCacheKey {
|
||||
final bool showOtherNodes;
|
||||
final bool isBuildingPathTrace;
|
||||
final bool clusterNodes;
|
||||
final ColorScheme colorScheme;
|
||||
|
||||
const _NodeMarkersCacheKey({
|
||||
required this.contactsSignature,
|
||||
@@ -4405,6 +4409,7 @@ class _NodeMarkersCacheKey {
|
||||
required this.showOtherNodes,
|
||||
required this.isBuildingPathTrace,
|
||||
required this.clusterNodes,
|
||||
required this.colorScheme,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -4427,7 +4432,8 @@ class _NodeMarkersCacheKey {
|
||||
showChatNodes == other.showChatNodes &&
|
||||
showOtherNodes == other.showOtherNodes &&
|
||||
isBuildingPathTrace == other.isBuildingPathTrace &&
|
||||
clusterNodes == other.clusterNodes;
|
||||
clusterNodes == other.clusterNodes &&
|
||||
colorScheme == other.colorScheme;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -4450,6 +4456,7 @@ class _NodeMarkersCacheKey {
|
||||
showOtherNodes,
|
||||
isBuildingPathTrace,
|
||||
clusterNodes,
|
||||
colorScheme,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user