@@ -435,12 +435,15 @@ class MarkAsReadWidget extends StatelessWidget {
435
435
style: FilledButton .styleFrom (
436
436
backgroundColor: _UnreadMarker .color,
437
437
minimumSize: const Size .fromHeight (38 ),
438
- textStyle: TextStyle (
439
- fontFamily: kDefaultFontFamily,
440
- fontFamilyFallback: kDefaultFontFamilyFallback,
441
- fontSize: 18 ,
442
- height: (23 / 18 ),
443
- ).merge (weightVariableTextStyle (context)),
438
+ textStyle:
439
+ // Restate [FilledButton]'s default, which inherits from
440
+ // [zulipTypography]…
441
+ Theme .of (context).textTheme.labelLarge!
442
+ // …then clobber some attributes to follow Figma:
443
+ .merge (const TextStyle (
444
+ fontSize: 18 ,
445
+ height: (23 / 18 ))
446
+ .merge (weightVariableTextStyle (context, wght: 400 ))),
444
447
shape: RoundedRectangleBorder (borderRadius: BorderRadius .circular (7 )),
445
448
),
446
449
onPressed: () => _handlePress (context),
@@ -574,8 +577,6 @@ class StreamMessageRecipientHeader extends StatelessWidget {
574
577
}
575
578
final textStyle = TextStyle (
576
579
color: contrastingColor,
577
- fontFamily: kDefaultFontFamily,
578
- fontFamilyFallback: kDefaultFontFamilyFallback,
579
580
fontSize: 16 ,
580
581
letterSpacing: 0.02 * 16 ,
581
582
height: (18 / 16 ),
@@ -685,9 +686,7 @@ class DmRecipientHeader extends StatelessWidget {
685
686
child: Icon (size: 16 , ZulipIcons .user)),
686
687
Expanded (
687
688
child: Text (title,
688
- style: TextStyle (
689
- fontFamily: kDefaultFontFamily,
690
- fontFamilyFallback: kDefaultFontFamilyFallback,
689
+ style: const TextStyle (
691
690
fontSize: 16 ,
692
691
letterSpacing: 0.02 * 16 ,
693
692
height: (18 / 16 ),
@@ -719,8 +718,6 @@ class RecipientHeaderDate extends StatelessWidget {
719
718
child: Text (
720
719
style: TextStyle (
721
720
color: color,
722
- fontFamily: kDefaultFontFamily,
723
- fontFamilyFallback: kDefaultFontFamilyFallback,
724
721
fontSize: 16 ,
725
722
// In Figma this has a line-height of 19, but using 18
726
723
// here to match the stream/topic text widgets helps
@@ -729,7 +726,7 @@ class RecipientHeaderDate extends StatelessWidget {
729
726
// This is equivalent to css `all-small-caps`, see:
730
727
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-caps#all-small-caps
731
728
fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
732
- ). merge ( weightVariableTextStyle (context)) ,
729
+ ),
733
730
formatHeaderDate (
734
731
zulipLocalizations,
735
732
DateTime .fromMillisecondsSinceEpoch (message.timestamp * 1000 ),
0 commit comments