@@ -123,6 +123,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
123
123
mainBackground: const Color (0xfff0f0f0 ),
124
124
title: const Color (0xff1a1a1a ),
125
125
streamColorSwatches: StreamColorSwatches .light,
126
+ star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
126
127
);
127
128
128
129
DesignVariables .dark () :
@@ -133,6 +134,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
133
134
mainBackground: const Color (0xff1d1d1d ),
134
135
title: const Color (0xffffffff ),
135
136
streamColorSwatches: StreamColorSwatches .dark,
137
+ // TODO(#95) unchanged in dark theme?
138
+ star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
136
139
);
137
140
138
141
DesignVariables ._({
@@ -142,6 +145,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
142
145
required this .mainBackground,
143
146
required this .title,
144
147
required this .streamColorSwatches,
148
+ required this .star,
145
149
});
146
150
147
151
/// The [DesignVariables] from the context's active theme.
@@ -163,6 +167,9 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
163
167
// Not exactly from the Figma design, but from Vlad anyway.
164
168
final StreamColorSwatches streamColorSwatches;
165
169
170
+ // Not named variables in Figma; taken from older Figma drafts, or elsewhere.
171
+ final Color star;
172
+
166
173
@override
167
174
DesignVariables copyWith ({
168
175
Color ? bgTopBar,
@@ -171,6 +178,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
171
178
Color ? mainBackground,
172
179
Color ? title,
173
180
StreamColorSwatches ? streamColorSwatches,
181
+ Color ? star,
174
182
}) {
175
183
return DesignVariables ._(
176
184
bgTopBar: bgTopBar ?? this .bgTopBar,
@@ -179,6 +187,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
179
187
mainBackground: mainBackground ?? this .mainBackground,
180
188
title: title ?? this .title,
181
189
streamColorSwatches: streamColorSwatches ?? this .streamColorSwatches,
190
+ star: star ?? this .star,
182
191
);
183
192
}
184
193
@@ -194,6 +203,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
194
203
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
195
204
title: Color .lerp (title, other.title, t)! ,
196
205
streamColorSwatches: StreamColorSwatches .lerp (streamColorSwatches, other.streamColorSwatches, t),
206
+ star: Color .lerp (star, other.star, t)! ,
197
207
);
198
208
}
199
209
}
0 commit comments