@@ -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.
@@ -110,6 +112,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
110
112
111
113
// Not exactly from the Figma design, but from Vlad anyway.
112
114
final StreamColorSwatches streamColorSwatches;
115
+ final Color starColor;
113
116
114
117
@override
115
118
DesignVariables copyWith ({
@@ -119,6 +122,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
119
122
Color ? icon,
120
123
Color ? title,
121
124
StreamColorSwatches ? streamColorSwatches,
125
+ Color ? starColor,
122
126
}) {
123
127
return DesignVariables ._(
124
128
bgMain: bgMain ?? this .bgMain,
@@ -127,6 +131,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
127
131
icon: icon ?? this .icon,
128
132
title: title ?? this .title,
129
133
streamColorSwatches: streamColorSwatches ?? this .streamColorSwatches,
134
+ starColor: starColor ?? this .starColor,
130
135
);
131
136
}
132
137
@@ -142,6 +147,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
142
147
icon: Color .lerp (icon, other? .icon, t)! ,
143
148
title: Color .lerp (title, other? .title, t)! ,
144
149
streamColorSwatches: streamColorSwatches.lerp (other? .streamColorSwatches, t),
150
+ starColor: Color .lerp (starColor, other? .starColor, t)! ,
145
151
);
146
152
}
147
153
}
0 commit comments