@@ -880,7 +880,12 @@ class MessageWithPossibleSender extends StatelessWidget {
880
880
ProfilePage .buildRoute (context: context,
881
881
userId: message.senderId)),
882
882
child: Text (message.senderFullName, // TODO get from user data
883
- style: const TextStyle (fontWeight: FontWeight .bold))),
883
+ style: const TextStyle (
884
+ fontFamily: 'Source Sans 3' ,
885
+ fontSize: 18 ,
886
+ height: (22 / 18 ),
887
+ ).merge (weightVariableTextStyle (context, wght: 600 ,
888
+ wghtIfPlatformRequestsBold: 900 )))),
884
889
const SizedBox (height: 4 ),
885
890
],
886
891
MessageContent (message: message, content: item.content),
@@ -891,19 +896,22 @@ class MessageWithPossibleSender extends StatelessWidget {
891
896
width: 80 ,
892
897
padding: const EdgeInsets .only (top: 4 , right: 16 - 8 ),
893
898
alignment: Alignment .topRight,
894
- child: Text (time, style: _kMessageTimestampStyle)),
899
+ child: Text (time,
900
+ style: TextStyle (
901
+ color: _kMessageTimestampColor,
902
+ fontFamily: 'Source Sans 3' ,
903
+ fontSize: 16 ,
904
+ height: (18 / 16 ),
905
+ fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
906
+ ).merge (weightVariableTextStyle (context)))),
895
907
])));
896
908
}
897
909
}
898
910
899
911
// TODO web seems to ignore locale in formatting time, but we could do better
900
912
final _kMessageTimestampFormat = DateFormat ('h:mm aa' , 'en_US' );
901
913
902
- // TODO this seems to come out lighter than on web
903
- final _kMessageTimestampStyle = TextStyle (
904
- fontSize: 12 ,
905
- fontWeight: FontWeight .w400,
906
- color: const HSLColor .fromAHSL (0.4 , 0 , 0 , 0.2 ).toColor ());
914
+ final _kMessageTimestampColor = const HSLColor .fromAHSL (1 , 0 , 0 , 0.5 ).toColor ();
907
915
908
916
Future <void > markNarrowAsRead (BuildContext context, Narrow narrow) async {
909
917
final store = PerAccountStoreWidget .of (context);
0 commit comments