@@ -123,6 +123,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
123123 mainBackground: const Color (0xfff0f0f0 ),
124124 title: const Color (0xff1a1a1a ),
125125 streamColorSwatches: StreamColorSwatches .light,
126+ star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
126127 );
127128
128129 DesignVariables .dark () :
@@ -133,6 +134,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
133134 mainBackground: const Color (0xff1d1d1d ),
134135 title: const Color (0xffffffff ),
135136 streamColorSwatches: StreamColorSwatches .dark,
137+ // TODO(#95) unchanged in dark theme?
138+ star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
136139 );
137140
138141 DesignVariables ._({
@@ -142,6 +145,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
142145 required this .mainBackground,
143146 required this .title,
144147 required this .streamColorSwatches,
148+ required this .star,
145149 });
146150
147151 /// The [DesignVariables] from the context's active theme.
@@ -163,6 +167,9 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
163167 // Not exactly from the Figma design, but from Vlad anyway.
164168 final StreamColorSwatches streamColorSwatches;
165169
170+ // Not named variables in Figma; taken from older Figma drafts, or elsewhere.
171+ final Color star;
172+
166173 @override
167174 DesignVariables copyWith ({
168175 Color ? bgTopBar,
@@ -171,6 +178,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
171178 Color ? mainBackground,
172179 Color ? title,
173180 StreamColorSwatches ? streamColorSwatches,
181+ Color ? star,
174182 }) {
175183 return DesignVariables ._(
176184 bgTopBar: bgTopBar ?? this .bgTopBar,
@@ -179,6 +187,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
179187 mainBackground: mainBackground ?? this .mainBackground,
180188 title: title ?? this .title,
181189 streamColorSwatches: streamColorSwatches ?? this .streamColorSwatches,
190+ star: star ?? this .star,
182191 );
183192 }
184193
@@ -194,6 +203,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
194203 mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
195204 title: Color .lerp (title, other.title, t)! ,
196205 streamColorSwatches: StreamColorSwatches .lerp (streamColorSwatches, other.streamColorSwatches, t),
206+ star: Color .lerp (star, other.star, t)! ,
197207 );
198208 }
199209}
0 commit comments