change tag color

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-22 19:07:01 +08:00
parent 115221098a
commit b27c3ff169
40 changed files with 152 additions and 50 deletions

View File

@@ -201,7 +201,8 @@ class _PeerCardState extends State<_PeerCard>
)
],
);
final colors = _frontN(peer.tags, 25).map((e) => str2color2(e)).toList();
final colors =
_frontN(peer.tags, 25).map((e) => gFFI.abModel.getTagColor(e)).toList();
return Tooltip(
message: isMobile
? ''
@@ -311,7 +312,8 @@ class _PeerCardState extends State<_PeerCard>
),
);
final colors = _frontN(peer.tags, 25).map((e) => str2color2(e)).toList();
final colors =
_frontN(peer.tags, 25).map((e) => gFFI.abModel.getTagColor(e)).toList();
return Tooltip(
message: peer.tags.isNotEmpty
? '${translate('Tags')}: ${peer.tags.join(', ')}'