Skip to content

Commit 2e4ce98

Browse files
committed
emoji: Use withFadedAlpha for highlightColor
Because splashColor in dark mode is transparent, this changes the appearance. Signed-off-by: Zixuan James Li <[email protected]>
1 parent a76c664 commit 2e4ce98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/widgets/emoji_reaction.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
44
import '../api/model/model.dart';
55
import '../api/route/messages.dart';
66
import '../model/emoji.dart';
7+
import 'color.dart';
78
import 'content.dart';
89
import 'store.dart';
910
import 'text.dart';
@@ -166,7 +167,7 @@ class ReactionChip extends StatelessWidget {
166167
final labelColor = selfVoted ? reactionTheme.textSelected : reactionTheme.textUnselected;
167168
final backgroundColor = selfVoted ? reactionTheme.bgSelected : reactionTheme.bgUnselected;
168169
final splashColor = selfVoted ? reactionTheme.bgUnselected : reactionTheme.bgSelected;
169-
final highlightColor = splashColor.withValues(alpha: 0.5);
170+
final highlightColor = splashColor.withFadedAlpha(0.5);
170171

171172
final borderSide = BorderSide(
172173
color: borderColor,

0 commit comments

Comments
 (0)