@@ -552,13 +552,15 @@ class StreamMessageRecipientHeader extends StatelessWidget {
552
552
final store = PerAccountStoreWidget .of (context);
553
553
554
554
final topic = message.subject;
555
-
556
555
final subscription = store.subscriptions[message.streamId];
557
556
final streamColor = Color (subscription? .color ?? 0x00c2c2c2 );
558
557
final contrastingColor =
559
558
ThemeData .estimateBrightnessForColor (streamColor) == Brightness .dark
560
559
? Colors .white
561
560
: Colors .black;
561
+ final textStyle = TextStyle (
562
+ color: contrastingColor,
563
+ );
562
564
563
565
final Widget streamWidget;
564
566
if (! showStream) {
@@ -571,11 +573,18 @@ class StreamMessageRecipientHeader extends StatelessWidget {
571
573
onTap: () => Navigator .push (context,
572
574
MessageListPage .buildRoute (context: context,
573
575
narrow: StreamNarrow (message.streamId))),
574
- child: RecipientHeaderChevronContainer (
575
- color : streamColor ,
576
+ child: Row (children : [
577
+ const SizedBox (width : 16 ) ,
576
578
// TODO globe/lock icons for web-public and private streams
577
- child: Text (streamName,
578
- style: TextStyle (color: contrastingColor))));
579
+ Text (streamName, style: textStyle),
580
+ Padding (
581
+ // Figma has 5px horizontal padding around an 8px wide icon.
582
+ // Icon is 16px wide here so horizontal padding is 1px.
583
+ padding: const EdgeInsets .symmetric (horizontal: 1 ),
584
+ child: Icon (size: 16 ,
585
+ color: contrastingColor.withOpacity (0.6 ),
586
+ ZulipIcons .chevron_right)),
587
+ ]));
579
588
}
580
589
581
590
return GestureDetector (
@@ -594,8 +603,8 @@ class StreamMessageRecipientHeader extends StatelessWidget {
594
603
child: Text (topic,
595
604
// TODO: Give a way to see the whole topic (maybe a
596
605
// long-press interaction?)
597
- overflow : TextOverflow .ellipsis ,
598
- style : const TextStyle (fontWeight : FontWeight .w600) ))),
606
+ style : textStyle ,
607
+ overflow : TextOverflow .ellipsis ))),
599
608
// TODO topic links?
600
609
// Then web also has edit/resolve/mute buttons. Skip those for mobile.
601
610
RecipientHeaderDate (message: message,
0 commit comments