Skip to content

Commit 81f7038

Browse files
sirpengignprice
authored andcommitted
msglist: Update DM recipient header colors
1 parent 8e0de4a commit 81f7038

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/widgets/message_list.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,16 @@ class DmRecipientHeader extends StatelessWidget {
680680
child: Text(style: const TextStyle(color: Colors.white),
681681
title)),
682682
RecipientHeaderDate(message: message,
683-
color: _kRecipientHeaderDateColor),
683+
color: _kDmRecipientHeaderDateColor),
684684
])));
685685
}
686686
}
687687

688-
final _kDmRecipientHeaderColor = const HSLColor.fromAHSL(1, 0, 0, 0.27).toColor();
688+
// TODO(#95): web uses different color in dark mode
689+
// Header color from `color-background-private-message-header`
690+
// in zulip:web/styles/zulip.css .
691+
final _kDmRecipientHeaderColor = const HSLColor.fromAHSL(1, 46, 0.35, 0.93).toColor();
692+
final _kDmRecipientHeaderDateColor = Colors.black.withOpacity(0.4);
689693

690694
class RecipientHeaderDate extends StatelessWidget {
691695
const RecipientHeaderDate({super.key, required this.message, required this.color});
@@ -715,8 +719,6 @@ class RecipientHeaderDate extends StatelessWidget {
715719
}
716720
}
717721

718-
final _kRecipientHeaderDateColor = const HSLColor.fromAHSL(0.75, 0, 0, 0.15).toColor();
719-
720722
final _kRecipientHeaderDateFormat = DateFormat('y-MM-dd', 'en_US'); // TODO(#278)
721723

722724
/// A widget with the distinctive chevron-tailed shape in Zulip recipient headers.

0 commit comments

Comments
 (0)