@@ -134,7 +134,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
134
134
icon: const Color (0xff666699 ),
135
135
mainBackground: const Color (0xfff0f0f0 ),
136
136
title: const Color (0xff1a1a1a ),
137
- streamColorSwatches : ChannelColorSwatches .light,
137
+ channelColorSwatches : ChannelColorSwatches .light,
138
138
star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
139
139
);
140
140
@@ -145,7 +145,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
145
145
icon: const Color (0xff7070c2 ),
146
146
mainBackground: const Color (0xff1d1d1d ),
147
147
title: const Color (0xffffffff ),
148
- streamColorSwatches : ChannelColorSwatches .dark,
148
+ channelColorSwatches : ChannelColorSwatches .dark,
149
149
// TODO(#95) unchanged in dark theme?
150
150
star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
151
151
);
@@ -156,7 +156,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
156
156
required this .icon,
157
157
required this .mainBackground,
158
158
required this .title,
159
- required this .streamColorSwatches ,
159
+ required this .channelColorSwatches ,
160
160
required this .star,
161
161
});
162
162
@@ -177,7 +177,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
177
177
final Color title;
178
178
179
179
// Not exactly from the Figma design, but from Vlad anyway.
180
- final ChannelColorSwatches streamColorSwatches ;
180
+ final ChannelColorSwatches channelColorSwatches ;
181
181
182
182
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
183
183
final Color star;
@@ -189,7 +189,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
189
189
Color ? icon,
190
190
Color ? mainBackground,
191
191
Color ? title,
192
- ChannelColorSwatches ? streamColorSwatches ,
192
+ ChannelColorSwatches ? channelColorSwatches ,
193
193
Color ? star,
194
194
}) {
195
195
return DesignVariables ._(
@@ -198,7 +198,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
198
198
icon: icon ?? this .icon,
199
199
mainBackground: mainBackground ?? this .mainBackground,
200
200
title: title ?? this .title,
201
- streamColorSwatches : streamColorSwatches ?? this .streamColorSwatches ,
201
+ channelColorSwatches : channelColorSwatches ?? this .channelColorSwatches ,
202
202
star: star ?? this .star,
203
203
);
204
204
}
@@ -214,7 +214,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
214
214
icon: Color .lerp (icon, other.icon, t)! ,
215
215
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
216
216
title: Color .lerp (title, other.title, t)! ,
217
- streamColorSwatches : ChannelColorSwatches .lerp (streamColorSwatches , other.streamColorSwatches , t),
217
+ channelColorSwatches : ChannelColorSwatches .lerp (channelColorSwatches , other.channelColorSwatches , t),
218
218
star: Color .lerp (star, other.star, t)! ,
219
219
);
220
220
}
@@ -225,5 +225,5 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
225
225
/// For how this value is cached, see [ChannelColorSwatches.forBaseColor] .
226
226
ChannelColorSwatch colorSwatchFor (BuildContext context, Subscription subscription) {
227
227
return DesignVariables .of (context)
228
- .streamColorSwatches .forBaseColor (subscription.color);
228
+ .channelColorSwatches .forBaseColor (subscription.color);
229
229
}
0 commit comments