@@ -30,9 +30,8 @@ import 'theme.dart';
30
30
class MessageListTheme extends ThemeExtension <MessageListTheme > {
31
31
static final light = MessageListTheme ._(
32
32
dateSeparator: Colors .black,
33
- dateSeparatorText: const HSLColor .fromAHSL (0.75 , 0 , 0 , 0.15 ).toColor (),
34
33
dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
35
- messageTimestamp : const HSLColor .fromAHSL (0.8 , 0 , 0 , 0.2 ).toColor (),
34
+ labelTime : const HSLColor .fromAHSL (0.49 , 0 , 0 , 0 ).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 (),
@@ -55,9 +54,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
55
54
56
55
static final dark = MessageListTheme ._(
57
56
dateSeparator: Colors .white,
58
- dateSeparatorText: const HSLColor .fromAHSL (0.75 , 0 , 0 , 1 ).toColor (),
59
57
dmRecipientHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
60
- messageTimestamp : const HSLColor .fromAHSL (0.8 , 0 , 0 , 0.85 ).toColor (),
58
+ labelTime : const HSLColor .fromAHSL (0.5 , 0 , 0 , 1 ).toColor (),
61
59
recipientHeaderText: const HSLColor .fromAHSL (0.8 , 0 , 0 , 1 ).toColor (),
62
60
senderBotIcon: const HSLColor .fromAHSL (1 , 180 , 0.05 , 0.5 ).toColor (),
63
61
senderName: const HSLColor .fromAHSL (0.85 , 0 , 0 , 1 ).toColor (),
@@ -79,9 +77,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
79
77
80
78
MessageListTheme ._({
81
79
required this .dateSeparator,
82
- required this .dateSeparatorText,
83
80
required this .dmRecipientHeaderBg,
84
- required this .messageTimestamp ,
81
+ required this .labelTime ,
85
82
required this .recipientHeaderText,
86
83
required this .senderBotIcon,
87
84
required this .senderName,
@@ -103,9 +100,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
103
100
}
104
101
105
102
final Color dateSeparator;
106
- final Color dateSeparatorText;
107
103
final Color dmRecipientHeaderBg;
108
- final Color messageTimestamp ;
104
+ final Color labelTime ;
109
105
final Color recipientHeaderText;
110
106
final Color senderBotIcon;
111
107
final Color senderName;
@@ -118,9 +114,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
118
114
@override
119
115
MessageListTheme copyWith ({
120
116
Color ? dateSeparator,
121
- Color ? dateSeparatorText,
122
117
Color ? dmRecipientHeaderBg,
123
- Color ? messageTimestamp ,
118
+ Color ? labelTime ,
124
119
Color ? recipientHeaderText,
125
120
Color ? senderBotIcon,
126
121
Color ? senderName,
@@ -132,9 +127,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
132
127
}) {
133
128
return MessageListTheme ._(
134
129
dateSeparator: dateSeparator ?? this .dateSeparator,
135
- dateSeparatorText: dateSeparatorText ?? this .dateSeparatorText,
136
130
dmRecipientHeaderBg: dmRecipientHeaderBg ?? this .dmRecipientHeaderBg,
137
- messageTimestamp : messageTimestamp ?? this .messageTimestamp ,
131
+ labelTime : labelTime ?? this .labelTime ,
138
132
recipientHeaderText: recipientHeaderText ?? this .recipientHeaderText,
139
133
senderBotIcon: senderBotIcon ?? this .senderBotIcon,
140
134
senderName: senderName ?? this .senderName,
@@ -153,9 +147,8 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
153
147
}
154
148
return MessageListTheme ._(
155
149
dateSeparator: Color .lerp (dateSeparator, other.dateSeparator, t)! ,
156
- dateSeparatorText: Color .lerp (dateSeparatorText, other.dateSeparatorText, t)! ,
157
150
dmRecipientHeaderBg: Color .lerp (dmRecipientHeaderBg, other.dmRecipientHeaderBg, t)! ,
158
- messageTimestamp : Color .lerp (messageTimestamp , other.messageTimestamp , t)! ,
151
+ labelTime : Color .lerp (labelTime , other.labelTime , t)! ,
159
152
recipientHeaderText: Color .lerp (recipientHeaderText, other.recipientHeaderText, t)! ,
160
153
senderBotIcon: Color .lerp (senderBotIcon, other.senderBotIcon, t)! ,
161
154
senderName: Color .lerp (senderName, other.senderName, t)! ,
@@ -1263,7 +1256,7 @@ class DateText extends StatelessWidget {
1263
1256
final zulipLocalizations = ZulipLocalizations .of (context);
1264
1257
return Text (
1265
1258
style: TextStyle (
1266
- color: messageListTheme.dateSeparatorText ,
1259
+ color: messageListTheme.labelTime ,
1267
1260
fontSize: fontSize,
1268
1261
height: height,
1269
1262
// This is equivalent to css `all-small-caps`, see:
@@ -1370,7 +1363,7 @@ class MessageWithPossibleSender extends StatelessWidget {
1370
1363
const SizedBox (width: 4 ),
1371
1364
Text (time,
1372
1365
style: TextStyle (
1373
- color: messageListTheme.messageTimestamp ,
1366
+ color: messageListTheme.labelTime ,
1374
1367
fontSize: 16 ,
1375
1368
height: (18 / 16 ),
1376
1369
fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
0 commit comments