Skip to content

Commit b5e496c

Browse files
Khader-1gnprice
authored andcommitted
channel_colors [nfc]: Rename References of ChannelColorSwatches to match new name
1 parent dd05f03 commit b5e496c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/widgets/theme.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
134134
icon: const Color(0xff666699),
135135
mainBackground: const Color(0xfff0f0f0),
136136
title: const Color(0xff1a1a1a),
137-
streamColorSwatches: ChannelColorSwatches.light,
137+
channelColorSwatches: ChannelColorSwatches.light,
138138
star: const HSLColor.fromAHSL(0.5, 47, 1, 0.41).toColor(),
139139
);
140140

@@ -145,7 +145,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
145145
icon: const Color(0xff7070c2),
146146
mainBackground: const Color(0xff1d1d1d),
147147
title: const Color(0xffffffff),
148-
streamColorSwatches: ChannelColorSwatches.dark,
148+
channelColorSwatches: ChannelColorSwatches.dark,
149149
// TODO(#95) unchanged in dark theme?
150150
star: const HSLColor.fromAHSL(0.5, 47, 1, 0.41).toColor(),
151151
);
@@ -156,7 +156,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
156156
required this.icon,
157157
required this.mainBackground,
158158
required this.title,
159-
required this.streamColorSwatches,
159+
required this.channelColorSwatches,
160160
required this.star,
161161
});
162162

@@ -177,7 +177,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
177177
final Color title;
178178

179179
// Not exactly from the Figma design, but from Vlad anyway.
180-
final ChannelColorSwatches streamColorSwatches;
180+
final ChannelColorSwatches channelColorSwatches;
181181

182182
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
183183
final Color star;
@@ -189,7 +189,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
189189
Color? icon,
190190
Color? mainBackground,
191191
Color? title,
192-
ChannelColorSwatches? streamColorSwatches,
192+
ChannelColorSwatches? channelColorSwatches,
193193
Color? star,
194194
}) {
195195
return DesignVariables._(
@@ -198,7 +198,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
198198
icon: icon ?? this.icon,
199199
mainBackground: mainBackground ?? this.mainBackground,
200200
title: title ?? this.title,
201-
streamColorSwatches: streamColorSwatches ?? this.streamColorSwatches,
201+
channelColorSwatches: channelColorSwatches ?? this.channelColorSwatches,
202202
star: star ?? this.star,
203203
);
204204
}
@@ -214,7 +214,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
214214
icon: Color.lerp(icon, other.icon, t)!,
215215
mainBackground: Color.lerp(mainBackground, other.mainBackground, t)!,
216216
title: Color.lerp(title, other.title, t)!,
217-
streamColorSwatches: ChannelColorSwatches.lerp(streamColorSwatches, other.streamColorSwatches, t),
217+
channelColorSwatches: ChannelColorSwatches.lerp(channelColorSwatches, other.channelColorSwatches, t),
218218
star: Color.lerp(star, other.star, t)!,
219219
);
220220
}
@@ -225,5 +225,5 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
225225
/// For how this value is cached, see [ChannelColorSwatches.forBaseColor].
226226
ChannelColorSwatch colorSwatchFor(BuildContext context, Subscription subscription) {
227227
return DesignVariables.of(context)
228-
.streamColorSwatches.forBaseColor(subscription.color);
228+
.channelColorSwatches.forBaseColor(subscription.color);
229229
}

0 commit comments

Comments
 (0)