Skip to content

Commit fc75907

Browse files
theme: Adjust foreground & dateSeparator colors
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
1 parent 5e8d0a8 commit fc75907

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/widgets/message_list.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
5555

5656
MessageListTheme.dark() :
5757
this._(
58-
dateSeparator: Colors.white,
59-
dateSeparatorText: const HSLColor.fromAHSL(0.75, 0, 0, 1).toColor(),
60-
dmRecipientHeaderBg: const HSLColor.fromAHSL(1, 46, 0.15, 0.2).toColor(),
61-
messageTimestamp: const HSLColor.fromAHSL(0.8, 0, 0, 0.85).toColor(),
62-
recipientHeaderText: const HSLColor.fromAHSL(0.8, 0, 0, 1).toColor(),
58+
dateSeparator: Colors.white.withValues(alpha: 51),
59+
dateSeparatorText: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(),
60+
dmRecipientHeaderBg: const HSLColor.fromAHSL(1, 0, 0, 0.14).toColor(),
61+
messageTimestamp: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(),
62+
recipientHeaderText: const HSLColor.fromAHSL(0.9, 0, 0, 1).toColor(),
6363
senderBotIcon: const HSLColor.fromAHSL(1, 180, 0.05, 0.5).toColor(),
64-
senderName: const HSLColor.fromAHSL(0.85, 0, 0, 1).toColor(),
65-
streamMessageBgDefault: const HSLColor.fromAHSL(1, 0, 0, 0.15).toColor(),
64+
senderName: const HSLColor.fromAHSL(0.9, 0, 0, 1).toColor(),
65+
streamMessageBgDefault: const HSLColor.fromAHSL(1, 0, 0, 0.11).toColor(),
6666
streamRecipientHeaderChevronRight: Colors.white.withValues(alpha: 0.3),
6767

6868
// 0.75 opacity from here:

lib/widgets/theme.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,5 +493,5 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
493493
/// For how this value is cached, see [ChannelColorSwatches.forBaseColor].
494494
ChannelColorSwatch colorSwatchFor(BuildContext context, Subscription subscription) {
495495
return DesignVariables.of(context)
496-
.channelColorSwatches.forBaseColor(subscription.color);
496+
.channelColorSwatches.forBaseColor(subscription.color);
497497
}

0 commit comments

Comments
 (0)