@@ -30,9 +30,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
30
30
MessageListTheme .light () :
31
31
this ._(
32
32
dateSeparator: Colors .black,
33
- dateSeparatorText : const HSLColor .fromAHSL (0.75 , 0 , 0 , 0.15 ).toColor (),
33
+ labelTime : const HSLColor .fromAHSL (0.49 , 0 , 0 , 0 ).toColor (),
34
34
dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
35
- messageTimestamp: const HSLColor .fromAHSL (0.8 , 0 , 0 , 0.2 ).toColor (),
36
35
recipientHeaderText: const HSLColor .fromAHSL (1 , 0 , 0 , 0.15 ).toColor (),
37
36
senderBotIcon: const HSLColor .fromAHSL (1 , 180 , 0.08 , 0.65 ).toColor (),
38
37
senderName: const HSLColor .fromAHSL (1 , 0 , 0 , 0.2 ).toColor (),
@@ -56,9 +55,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
56
55
MessageListTheme .dark () :
57
56
this ._(
58
57
dateSeparator: Colors .white.withValues (alpha: 0.2 ),
59
- dateSeparatorText : const HSLColor .fromAHSL (0.5 , 0 , 0 , 1 ).toColor (),
58
+ labelTime : const HSLColor .fromAHSL (0.5 , 0 , 0 , 1 ).toColor (),
60
59
dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 0 , 0 , 0.14 ).toColor (),
61
- messageTimestamp: const HSLColor .fromAHSL (0.5 , 0 , 0 , 1 ).toColor (),
62
60
recipientHeaderText: const HSLColor .fromAHSL (0.9 , 0 , 0 , 1 ).toColor (),
63
61
senderBotIcon: const HSLColor .fromAHSL (1 , 180 , 0.05 , 0.5 ).toColor (),
64
62
senderName: const HSLColor .fromAHSL (0.9 , 0 , 0 , 1 ).toColor (),
@@ -80,9 +78,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
80
78
81
79
MessageListTheme ._({
82
80
required this .dateSeparator,
83
- required this .dateSeparatorText ,
81
+ required this .labelTime ,
84
82
required this .dmRecipientHeaderBg,
85
- required this .messageTimestamp,
86
83
required this .recipientHeaderText,
87
84
required this .senderBotIcon,
88
85
required this .senderName,
@@ -104,9 +101,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
104
101
}
105
102
106
103
final Color dateSeparator;
107
- final Color dateSeparatorText ;
104
+ final Color labelTime ;
108
105
final Color dmRecipientHeaderBg;
109
- final Color messageTimestamp;
110
106
final Color recipientHeaderText;
111
107
final Color senderBotIcon;
112
108
final Color senderName;
@@ -119,9 +115,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
119
115
@override
120
116
MessageListTheme copyWith ({
121
117
Color ? dateSeparator,
122
- Color ? dateSeparatorText ,
118
+ Color ? labelTime ,
123
119
Color ? dmRecipientHeaderBg,
124
- Color ? messageTimestamp,
125
120
Color ? recipientHeaderText,
126
121
Color ? senderBotIcon,
127
122
Color ? senderName,
@@ -133,9 +128,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
133
128
}) {
134
129
return MessageListTheme ._(
135
130
dateSeparator: dateSeparator ?? this .dateSeparator,
136
- dateSeparatorText : dateSeparatorText ?? this .dateSeparatorText ,
131
+ labelTime : labelTime ?? this .labelTime ,
137
132
dmRecipientHeaderBg: dmRecipientHeaderBg ?? this .dmRecipientHeaderBg,
138
- messageTimestamp: messageTimestamp ?? this .messageTimestamp,
139
133
recipientHeaderText: recipientHeaderText ?? this .recipientHeaderText,
140
134
senderBotIcon: senderBotIcon ?? this .senderBotIcon,
141
135
senderName: senderName ?? this .senderName,
@@ -154,9 +148,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
154
148
}
155
149
return MessageListTheme ._(
156
150
dateSeparator: Color .lerp (dateSeparator, other.dateSeparator, t)! ,
157
- dateSeparatorText : Color .lerp (dateSeparatorText , other.dateSeparatorText , t)! ,
151
+ labelTime : Color .lerp (labelTime , other.labelTime , t)! ,
158
152
dmRecipientHeaderBg: Color .lerp (streamMessageBgDefault, other.dmRecipientHeaderBg, t)! ,
159
- messageTimestamp: Color .lerp (messageTimestamp, other.messageTimestamp, t)! ,
160
153
recipientHeaderText: Color .lerp (recipientHeaderText, other.recipientHeaderText, t)! ,
161
154
senderBotIcon: Color .lerp (senderBotIcon, other.senderBotIcon, t)! ,
162
155
senderName: Color .lerp (senderName, other.senderName, t)! ,
@@ -1220,7 +1213,7 @@ class DateText extends StatelessWidget {
1220
1213
final zulipLocalizations = ZulipLocalizations .of (context);
1221
1214
return Text (
1222
1215
style: TextStyle (
1223
- color: messageListTheme.dateSeparatorText ,
1216
+ color: messageListTheme.labelTime ,
1224
1217
fontSize: fontSize,
1225
1218
height: height,
1226
1219
// This is equivalent to css `all-small-caps`, see:
@@ -1327,7 +1320,7 @@ class MessageWithPossibleSender extends StatelessWidget {
1327
1320
const SizedBox (width: 4 ),
1328
1321
Text (time,
1329
1322
style: TextStyle (
1330
- color: messageListTheme.messageTimestamp ,
1323
+ color: messageListTheme.labelTime ,
1331
1324
fontSize: 16 ,
1332
1325
height: (18 / 16 ),
1333
1326
fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
0 commit comments