@@ -81,7 +81,9 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
81
81
borderBar = const Color (0x33000000 ),
82
82
icon = const Color (0xff666699 ),
83
83
title = const Color (0xff1a1a1a ),
84
- streamColorSwatches = StreamColorSwatches .light;
84
+ streamColorSwatches = StreamColorSwatches .light,
85
+ // TODO(#95) unchanged in dark theme?
86
+ star = const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor ();
85
87
86
88
DesignVariables ._({
87
89
required this .bgMain,
@@ -90,6 +92,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
90
92
required this .icon,
91
93
required this .title,
92
94
required this .streamColorSwatches,
95
+ required this .star,
93
96
});
94
97
95
98
/// The [DesignVariables] from the context's active theme.
@@ -111,6 +114,9 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
111
114
// Not exactly from the Figma design, but from Vlad anyway.
112
115
final StreamColorSwatches streamColorSwatches;
113
116
117
+ // Not named variables in Figma; taken from older Figma drafts, or elsewhere.
118
+ final Color star;
119
+
114
120
@override
115
121
DesignVariables copyWith ({
116
122
Color ? bgMain,
@@ -119,6 +125,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
119
125
Color ? icon,
120
126
Color ? title,
121
127
StreamColorSwatches ? streamColorSwatches,
128
+ Color ? star,
122
129
}) {
123
130
return DesignVariables ._(
124
131
bgMain: bgMain ?? this .bgMain,
@@ -127,6 +134,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
127
134
icon: icon ?? this .icon,
128
135
title: title ?? this .title,
129
136
streamColorSwatches: streamColorSwatches ?? this .streamColorSwatches,
137
+ star: star ?? this .star,
130
138
);
131
139
}
132
140
@@ -142,6 +150,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
142
150
icon: Color .lerp (icon, other.icon, t)! ,
143
151
title: Color .lerp (title, other.title, t)! ,
144
152
streamColorSwatches: StreamColorSwatches .lerp (streamColorSwatches, other.streamColorSwatches, t),
153
+ star: Color .lerp (star, other.star, t)! ,
145
154
);
146
155
}
147
156
}
0 commit comments