@@ -6,7 +6,7 @@ import 'package:flutter_color_models/flutter_color_models.dart';
6
6
import '../api/model/model.dart' ;
7
7
import 'color.dart' ;
8
8
9
- /// A lazily-computed map from a stream 's base color to a
9
+ /// A lazily-computed map from a channel 's base color to a
10
10
/// corresponding [ChannelColorSwatch] .
11
11
abstract class ChannelColorSwatches {
12
12
/// The [ChannelColorSwatches] for the light theme.
@@ -72,7 +72,7 @@ class _ChannelColorSwatchesLerped extends ChannelColorSwatches {
72
72
}
73
73
74
74
75
- /// A [ColorSwatch] with colors related to a base stream color.
75
+ /// A [ColorSwatch] with colors related to a base channel color.
76
76
///
77
77
/// Use this in UI code for colors related to [Subscription.color] ,
78
78
/// such as the background of an unread count badge.
@@ -89,22 +89,22 @@ class ChannelColorSwatch extends ColorSwatch<ChannelColorVariant> {
89
89
90
90
Color get unreadCountBadgeBackground => this [ChannelColorVariant .unreadCountBadgeBackground]! ;
91
91
92
- /// The stream icon on a plain-colored surface, such as white.
92
+ /// The channel icon on a plain-colored surface, such as white.
93
93
///
94
94
/// For the icon on a [barBackground] -colored surface,
95
95
/// use [iconOnBarBackground] instead.
96
96
Color get iconOnPlainBackground => this [ChannelColorVariant .iconOnPlainBackground]! ;
97
97
98
- /// The stream icon on a [barBackground] -colored surface.
98
+ /// The channel icon on a [barBackground] -colored surface.
99
99
///
100
100
/// For the icon on a plain surface, use [iconOnPlainBackground] instead.
101
101
/// This color is chosen to enhance contrast with [barBackground] :
102
102
/// <https://github.com/zulip/zulip/pull/27485>
103
103
Color get iconOnBarBackground => this [ChannelColorVariant .iconOnBarBackground]! ;
104
104
105
- /// The background color of a bar representing a stream , like a recipient bar.
105
+ /// The background color of a bar representing a channel , like a recipient bar.
106
106
///
107
- /// Use this in the message list, the "Inbox" view, and the "Streams " view.
107
+ /// Use this in the message list, the "Inbox" view, and the "Channels " view.
108
108
Color get barBackground => this [ChannelColorVariant .barBackground]! ;
109
109
110
110
static Map <ChannelColorVariant , Color > _computeLight (int base ) {
0 commit comments