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