Use different name color for dark mode (#3694)

This commit is contained in:
Kelrap 2025-08-11 16:19:39 -04:00 committed by GitHub
parent ca65c8c2ea
commit 25e72f440d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,9 +93,13 @@ class ActivityParticipantIndicator extends StatelessWidget {
L10n.of(context).openRoleLabel,
style: TextStyle(
fontSize: 12.0,
color: assignedRole
?.userId.localpart?.lightColorAvatar ??
assignedRole?.role?.lightColorAvatar,
color:
(Theme.of(context).brightness == Brightness.light
? assignedRole
?.userId.localpart?.lightColorAvatar
: assignedRole
?.userId.localpart?.lightColorText) ??
assignedRole?.role?.lightColorAvatar,
),
),
],