@@ -58,35 +58,35 @@ class _MessageListPageState extends State<MessageListPage> {
58
58
Widget build (BuildContext context) {
59
59
final store = PerAccountStoreWidget .of (context);
60
60
61
- final Color ? backgroundColor ;
61
+ final Color ? appBarBackgroundColor ;
62
62
bool removeAppBarBottomBorder = false ;
63
63
switch (widget.narrow) {
64
64
case AllMessagesNarrow ():
65
- backgroundColor = null ; // i.e., inherit
65
+ appBarBackgroundColor = null ; // i.e., inherit
66
66
67
67
case StreamNarrow (: final streamId):
68
68
case TopicNarrow (: final streamId):
69
- backgroundColor = store.subscriptions[streamId]? .colorSwatch ().barBackground
69
+ appBarBackgroundColor = store.subscriptions[streamId]? .colorSwatch ().barBackground
70
70
?? _kUnsubscribedStreamRecipientHeaderColor;
71
71
// All recipient headers will match this color; remove distracting line
72
72
// (but are recipient headers even needed for topic narrows?)
73
73
removeAppBarBottomBorder = true ;
74
74
75
75
case DmNarrow ():
76
- backgroundColor = _kDmRecipientHeaderColor;
76
+ appBarBackgroundColor = _kDmRecipientHeaderColor;
77
77
// All recipient headers will match this color; remove distracting line
78
78
// (but are recipient headers even needed?)
79
79
removeAppBarBottomBorder = true ;
80
80
}
81
81
82
82
return Scaffold (
83
83
appBar: AppBar (title: MessageListAppBarTitle (narrow: widget.narrow),
84
- backgroundColor: backgroundColor ,
84
+ backgroundColor: appBarBackgroundColor ,
85
85
shape: removeAppBarBottomBorder
86
86
? const Border ()
87
87
: null , // i.e., inherit
88
88
),
89
- // TODO question for Vlad: for a stream view, should we set
89
+ // TODO question for Vlad: for a stream view, should we set the Scaffold's
90
90
// [backgroundColor] based on stream color, as in this frame:
91
91
// https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=132%3A9684&mode=dev
92
92
// That's not obviously preferred over the default background that
0 commit comments