Skip to content

Commit 3b10a4a

Browse files
Khader-1gnprice
authored andcommitted
channel_colors [nfc]: Rename stream to channel in comments/docs
1 parent 468f345 commit 3b10a4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/widgets/channel_colors.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flutter_color_models/flutter_color_models.dart';
66
import '../api/model/model.dart';
77
import 'color.dart';
88

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
1010
/// corresponding [ChannelColorSwatch].
1111
abstract class ChannelColorSwatches {
1212
/// The [ChannelColorSwatches] for the light theme.
@@ -72,7 +72,7 @@ class _ChannelColorSwatchesLerped extends ChannelColorSwatches {
7272
}
7373

7474

75-
/// A [ColorSwatch] with colors related to a base stream color.
75+
/// A [ColorSwatch] with colors related to a base channel color.
7676
///
7777
/// Use this in UI code for colors related to [Subscription.color],
7878
/// such as the background of an unread count badge.
@@ -89,22 +89,22 @@ class ChannelColorSwatch extends ColorSwatch<ChannelColorVariant> {
8989

9090
Color get unreadCountBadgeBackground => this[ChannelColorVariant.unreadCountBadgeBackground]!;
9191

92-
/// The stream icon on a plain-colored surface, such as white.
92+
/// The channel icon on a plain-colored surface, such as white.
9393
///
9494
/// For the icon on a [barBackground]-colored surface,
9595
/// use [iconOnBarBackground] instead.
9696
Color get iconOnPlainBackground => this[ChannelColorVariant.iconOnPlainBackground]!;
9797

98-
/// The stream icon on a [barBackground]-colored surface.
98+
/// The channel icon on a [barBackground]-colored surface.
9999
///
100100
/// For the icon on a plain surface, use [iconOnPlainBackground] instead.
101101
/// This color is chosen to enhance contrast with [barBackground]:
102102
/// <https://github.com/zulip/zulip/pull/27485>
103103
Color get iconOnBarBackground => this[ChannelColorVariant.iconOnBarBackground]!;
104104

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.
106106
///
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.
108108
Color get barBackground => this[ChannelColorVariant.barBackground]!;
109109

110110
static Map<ChannelColorVariant, Color> _computeLight(int base) {

0 commit comments

Comments
 (0)