@@ -32,9 +32,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
3232 dateSeparator: Colors .black,
3333 dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
3434 labelTime: const HSLColor .fromAHSL (0.49 , 0 , 0 , 0 ).toColor (),
35- recipientHeaderText: const HSLColor .fromAHSL (1 , 0 , 0 , 0.15 ).toColor (),
3635 senderBotIcon: const HSLColor .fromAHSL (1 , 180 , 0.08 , 0.65 ).toColor (),
37- senderName: const HSLColor .fromAHSL (1 , 0 , 0 , 0.2 ).toColor (),
3836 streamMessageBgDefault: Colors .white,
3937 streamRecipientHeaderChevronRight: Colors .black.withValues (alpha: 0.3 ),
4038
@@ -56,9 +54,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
5654 dateSeparator: Colors .white,
5755 dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
5856 labelTime: const HSLColor .fromAHSL (0.5 , 0 , 0 , 1 ).toColor (),
59- recipientHeaderText: const HSLColor .fromAHSL (0.8 , 0 , 0 , 1 ).toColor (),
6057 senderBotIcon: const HSLColor .fromAHSL (1 , 180 , 0.05 , 0.5 ).toColor (),
61- senderName: const HSLColor .fromAHSL (0.85 , 0 , 0 , 1 ).toColor (),
6258 streamMessageBgDefault: const HSLColor .fromAHSL (1 , 0 , 0 , 0.15 ).toColor (),
6359 streamRecipientHeaderChevronRight: Colors .white.withValues (alpha: 0.3 ),
6460
@@ -79,9 +75,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
7975 required this .dateSeparator,
8076 required this .dmRecipientHeaderBg,
8177 required this .labelTime,
82- required this .recipientHeaderText,
8378 required this .senderBotIcon,
84- required this .senderName,
8579 required this .streamMessageBgDefault,
8680 required this .streamRecipientHeaderChevronRight,
8781 required this .unreadMarker,
@@ -102,9 +96,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
10296 final Color dateSeparator;
10397 final Color dmRecipientHeaderBg;
10498 final Color labelTime;
105- final Color recipientHeaderText;
10699 final Color senderBotIcon;
107- final Color senderName;
108100 final Color streamMessageBgDefault;
109101 final Color streamRecipientHeaderChevronRight;
110102 final Color unreadMarker;
@@ -116,9 +108,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
116108 Color ? dateSeparator,
117109 Color ? dmRecipientHeaderBg,
118110 Color ? labelTime,
119- Color ? recipientHeaderText,
120111 Color ? senderBotIcon,
121- Color ? senderName,
122112 Color ? streamMessageBgDefault,
123113 Color ? streamRecipientHeaderChevronRight,
124114 Color ? unreadMarker,
@@ -129,9 +119,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
129119 dateSeparator: dateSeparator ?? this .dateSeparator,
130120 dmRecipientHeaderBg: dmRecipientHeaderBg ?? this .dmRecipientHeaderBg,
131121 labelTime: labelTime ?? this .labelTime,
132- recipientHeaderText: recipientHeaderText ?? this .recipientHeaderText,
133122 senderBotIcon: senderBotIcon ?? this .senderBotIcon,
134- senderName: senderName ?? this .senderName,
135123 streamMessageBgDefault: streamMessageBgDefault ?? this .streamMessageBgDefault,
136124 streamRecipientHeaderChevronRight: streamRecipientHeaderChevronRight ?? this .streamRecipientHeaderChevronRight,
137125 unreadMarker: unreadMarker ?? this .unreadMarker,
@@ -149,9 +137,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
149137 dateSeparator: Color .lerp (dateSeparator, other.dateSeparator, t)! ,
150138 dmRecipientHeaderBg: Color .lerp (streamMessageBgDefault, other.dmRecipientHeaderBg, t)! ,
151139 labelTime: Color .lerp (labelTime, other.labelTime, t)! ,
152- recipientHeaderText: Color .lerp (recipientHeaderText, other.recipientHeaderText, t)! ,
153140 senderBotIcon: Color .lerp (senderBotIcon, other.senderBotIcon, t)! ,
154- senderName: Color .lerp (senderName, other.senderName, t)! ,
155141 streamMessageBgDefault: Color .lerp (streamMessageBgDefault, other.streamMessageBgDefault, t)! ,
156142 streamRecipientHeaderChevronRight: Color .lerp (streamRecipientHeaderChevronRight, other.streamRecipientHeaderChevronRight, t)! ,
157143 unreadMarker: Color .lerp (unreadMarker, other.unreadMarker, t)! ,
@@ -1038,7 +1024,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
10381024 iconColor = swatch.iconOnBarBackground;
10391025 } else {
10401026 backgroundColor = messageListTheme.unsubscribedStreamRecipientHeaderBg;
1041- iconColor = messageListTheme.recipientHeaderText ;
1027+ iconColor = designVariables.title ;
10421028 }
10431029
10441030 final Widget streamWidget;
@@ -1143,6 +1129,7 @@ class DmRecipientHeader extends StatelessWidget {
11431129 }
11441130
11451131 final messageListTheme = MessageListTheme .of (context);
1132+ final designVariables = DesignVariables .of (context);
11461133
11471134 return GestureDetector (
11481135 onTap: () => Navigator .push (context,
@@ -1158,7 +1145,7 @@ class DmRecipientHeader extends StatelessWidget {
11581145 Padding (
11591146 padding: const EdgeInsets .symmetric (horizontal: 6 ),
11601147 child: Icon (
1161- color: messageListTheme.recipientHeaderText ,
1148+ color: designVariables.title ,
11621149 size: 16 ,
11631150 ZulipIcons .user)),
11641151 Expanded (
@@ -1172,7 +1159,7 @@ class DmRecipientHeader extends StatelessWidget {
11721159
11731160TextStyle recipientHeaderTextStyle (BuildContext context) {
11741161 return TextStyle (
1175- color: MessageListTheme .of (context).recipientHeaderText ,
1162+ color: DesignVariables .of (context).title ,
11761163 fontSize: 16 ,
11771164 letterSpacing: proportionalLetterSpacing (context, 0.02 , baseFontSize: 16 ),
11781165 height: (18 / 16 ),
@@ -1308,7 +1295,7 @@ class MessageWithPossibleSender extends StatelessWidget {
13081295 style: TextStyle (
13091296 fontSize: 18 ,
13101297 height: (22 / 18 ),
1311- color: messageListTheme.senderName ,
1298+ color: designVariables.title ,
13121299 ).merge (weightVariableTextStyle (context, wght: 600 )),
13131300 overflow: TextOverflow .ellipsis)),
13141301 if (sender? .isBot ?? false ) ...[
0 commit comments