@@ -139,6 +139,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
139
139
mainBackground: const Color (0xfff0f0f0 ),
140
140
title: const Color (0xff1a1a1a ),
141
141
channelColorSwatches: ChannelColorSwatches .light,
142
+ dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
142
143
loginOrDivider: const Color (0xffdedede ),
143
144
loginOrDividerText: const Color (0xff575757 ),
144
145
star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
@@ -157,6 +158,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
157
158
mainBackground: const Color (0xff1d1d1d ),
158
159
title: const Color (0xffffffff ),
159
160
channelColorSwatches: ChannelColorSwatches .dark,
161
+ dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
160
162
loginOrDivider: const Color (0xff424242 ),
161
163
loginOrDividerText: const Color (0xffa8a8a8 ),
162
164
// TODO(#95) unchanged in dark theme?
@@ -175,6 +177,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
175
177
required this .mainBackground,
176
178
required this .title,
177
179
required this .channelColorSwatches,
180
+ required this .dmHeaderBg,
178
181
required this .loginOrDivider,
179
182
required this .loginOrDividerText,
180
183
required this .star,
@@ -205,6 +208,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
205
208
final ChannelColorSwatches channelColorSwatches;
206
209
207
210
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
211
+ final Color dmHeaderBg;
208
212
final Color loginOrDivider; // TODO(#95) need proper dark-theme color (this is ad hoc)
209
213
final Color loginOrDividerText; // TODO(#95) need proper dark-theme color (this is ad hoc)
210
214
final Color star;
@@ -222,6 +226,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
222
226
Color ? mainBackground,
223
227
Color ? title,
224
228
ChannelColorSwatches ? channelColorSwatches,
229
+ Color ? dmHeaderBg,
225
230
Color ? loginOrDivider,
226
231
Color ? loginOrDividerText,
227
232
Color ? star,
@@ -238,6 +243,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
238
243
mainBackground: mainBackground ?? this .mainBackground,
239
244
title: title ?? this .title,
240
245
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
246
+ dmHeaderBg: dmHeaderBg ?? this .dmHeaderBg,
241
247
loginOrDivider: loginOrDivider ?? this .loginOrDivider,
242
248
loginOrDividerText: loginOrDividerText ?? this .loginOrDividerText,
243
249
star: star ?? this .star,
@@ -261,6 +267,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
261
267
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
262
268
title: Color .lerp (title, other.title, t)! ,
263
269
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
270
+ dmHeaderBg: Color .lerp (dmHeaderBg, other.dmHeaderBg, t)! ,
264
271
loginOrDivider: Color .lerp (loginOrDivider, other.loginOrDivider, t)! ,
265
272
loginOrDividerText: Color .lerp (loginOrDividerText, other.loginOrDividerText, t)! ,
266
273
star: Color .lerp (star, other.star, t)! ,
0 commit comments