@@ -114,10 +114,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
114
114
DesignVariables .light () :
115
115
this ._(
116
116
background: const Color (0xffffffff ),
117
+ bannerBgIntDanger: const Color (0xfff2e4e4 ),
117
118
bgContextMenu: const Color (0xfff2f2f2 ),
118
119
bgCounterUnread: const Color (0xff666699 ).withValues (alpha: 0.15 ),
119
120
bgTopBar: const Color (0xfff5f5f5 ),
120
121
borderBar: Colors .black.withValues (alpha: 0.2 ),
122
+ btnLabelAttLowIntDanger: const Color (0xffc0070a ),
123
+ btnLabelAttMediumDanger: const Color (0xffac0508 ),
121
124
composeBoxBg: const Color (0xffffffff ),
122
125
contextMenuCancelText: const Color (0xff222222 ),
123
126
contextMenuItemBg: const Color (0xff6159e1 ),
@@ -135,9 +138,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
135
138
atMentionMarker: const HSLColor .fromAHSL (0.5 , 0 , 0 , 0.2 ).toColor (),
136
139
contextMenuCancelBg: const Color (0xff797986 ),
137
140
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
138
- errorBannerBackground: const HSLColor .fromAHSL (1 , 4 , 0.33 , 0.90 ).toColor (),
139
- errorBannerBorder: const HSLColor .fromAHSL (0.4 , 3 , 0.57 , 0.33 ).toColor (),
140
- errorBannerLabel: const HSLColor .fromAHSL (1 , 4 , 0.58 , 0.33 ).toColor (),
141
141
groupDmConversationIcon: Colors .black.withValues (alpha: 0.5 ),
142
142
groupDmConversationIconBg: const Color (0x33808080 ),
143
143
loginOrDivider: const Color (0xffdedede ),
@@ -154,10 +154,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
154
154
DesignVariables .dark () :
155
155
this ._(
156
156
background: const Color (0xff000000 ),
157
+ bannerBgIntDanger: const Color (0xff461616 ),
157
158
bgContextMenu: const Color (0xff262626 ),
158
159
bgCounterUnread: const Color (0xff666699 ).withValues (alpha: 0.37 ),
159
160
bgTopBar: const Color (0xff242424 ),
160
161
borderBar: Colors .black.withValues (alpha: 0.5 ),
162
+ btnLabelAttLowIntDanger: const Color (0xffff8b7c ),
163
+ btnLabelAttMediumDanger: const Color (0xffff8b7c ),
161
164
composeBoxBg: const Color (0xff0f0f0f ),
162
165
contextMenuCancelText: const Color (0xffffffff ).withValues (alpha: 0.75 ),
163
166
contextMenuItemBg: const Color (0xff7977fe ),
@@ -176,9 +179,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
176
179
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
177
180
atMentionMarker: const HSLColor .fromAHSL (0.4 , 0 , 0 , 1 ).toColor (),
178
181
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
179
- errorBannerBackground: const HSLColor .fromAHSL (1 , 0 , 0.61 , 0.19 ).toColor (),
180
- errorBannerBorder: const HSLColor .fromAHSL (0.4 , 3 , 0.73 , 0.74 ).toColor (),
181
- errorBannerLabel: const HSLColor .fromAHSL (1 , 2 , 0.73 , 0.80 ).toColor (),
182
182
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
183
183
groupDmConversationIcon: Colors .white.withValues (alpha: 0.5 ),
184
184
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
@@ -201,10 +201,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
201
201
202
202
DesignVariables ._({
203
203
required this .background,
204
+ required this .bannerBgIntDanger,
204
205
required this .bgContextMenu,
205
206
required this .bgCounterUnread,
206
207
required this .bgTopBar,
207
208
required this .borderBar,
209
+ required this .btnLabelAttLowIntDanger,
210
+ required this .btnLabelAttMediumDanger,
208
211
required this .composeBoxBg,
209
212
required this .contextMenuCancelText,
210
213
required this .contextMenuItemBg,
@@ -222,9 +225,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
222
225
required this .atMentionMarker,
223
226
required this .contextMenuCancelBg,
224
227
required this .dmHeaderBg,
225
- required this .errorBannerBackground,
226
- required this .errorBannerBorder,
227
- required this .errorBannerLabel,
228
228
required this .groupDmConversationIcon,
229
229
required this .groupDmConversationIconBg,
230
230
required this .loginOrDivider,
@@ -249,10 +249,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
249
249
}
250
250
251
251
final Color background;
252
+ final Color bannerBgIntDanger;
252
253
final Color bgContextMenu;
253
254
final Color bgCounterUnread;
254
255
final Color bgTopBar;
255
256
final Color borderBar;
257
+ final Color btnLabelAttLowIntDanger;
258
+ final Color btnLabelAttMediumDanger;
256
259
final Color composeBoxBg;
257
260
final Color contextMenuCancelText;
258
261
final Color contextMenuItemBg;
@@ -274,9 +277,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
274
277
final Color atMentionMarker;
275
278
final Color contextMenuCancelBg; // In Figma, but unnamed.
276
279
final Color dmHeaderBg;
277
- final Color errorBannerBackground;
278
- final Color errorBannerBorder;
279
- final Color errorBannerLabel;
280
280
final Color groupDmConversationIcon;
281
281
final Color groupDmConversationIconBg;
282
282
final Color loginOrDivider; // TODO(design-dark) need proper dark-theme color (this is ad hoc)
@@ -292,10 +292,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
292
292
@override
293
293
DesignVariables copyWith ({
294
294
Color ? background,
295
+ Color ? bannerBgIntDanger,
295
296
Color ? bgContextMenu,
296
297
Color ? bgCounterUnread,
297
298
Color ? bgTopBar,
298
299
Color ? borderBar,
300
+ Color ? btnLabelAttLowIntDanger,
301
+ Color ? btnLabelAttMediumDanger,
299
302
Color ? composeBoxBg,
300
303
Color ? contextMenuCancelText,
301
304
Color ? contextMenuItemBg,
@@ -313,9 +316,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
313
316
Color ? atMentionMarker,
314
317
Color ? contextMenuCancelBg,
315
318
Color ? dmHeaderBg,
316
- Color ? errorBannerBackground,
317
- Color ? errorBannerBorder,
318
- Color ? errorBannerLabel,
319
319
Color ? groupDmConversationIcon,
320
320
Color ? groupDmConversationIconBg,
321
321
Color ? loginOrDivider,
@@ -330,10 +330,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
330
330
}) {
331
331
return DesignVariables ._(
332
332
background: background ?? this .background,
333
+ bannerBgIntDanger: bannerBgIntDanger ?? this .bannerBgIntDanger,
333
334
bgContextMenu: bgContextMenu ?? this .bgContextMenu,
334
335
bgCounterUnread: bgCounterUnread ?? this .bgCounterUnread,
335
336
bgTopBar: bgTopBar ?? this .bgTopBar,
336
337
borderBar: borderBar ?? this .borderBar,
338
+ btnLabelAttLowIntDanger: btnLabelAttLowIntDanger ?? this .btnLabelAttLowIntDanger,
339
+ btnLabelAttMediumDanger: btnLabelAttMediumDanger ?? this .btnLabelAttMediumDanger,
337
340
composeBoxBg: composeBoxBg ?? this .composeBoxBg,
338
341
contextMenuCancelText: contextMenuCancelText ?? this .contextMenuCancelText,
339
342
contextMenuItemBg: contextMenuItemBg ?? this .contextMenuItemBg,
@@ -351,9 +354,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
351
354
atMentionMarker: atMentionMarker ?? this .atMentionMarker,
352
355
contextMenuCancelBg: contextMenuCancelBg ?? this .contextMenuCancelBg,
353
356
dmHeaderBg: dmHeaderBg ?? this .dmHeaderBg,
354
- errorBannerBackground: errorBannerBackground ?? this .errorBannerBackground,
355
- errorBannerBorder: errorBannerBorder ?? this .errorBannerBorder,
356
- errorBannerLabel: errorBannerLabel ?? this .errorBannerLabel,
357
357
groupDmConversationIcon: groupDmConversationIcon ?? this .groupDmConversationIcon,
358
358
groupDmConversationIconBg: groupDmConversationIconBg ?? this .groupDmConversationIconBg,
359
359
loginOrDivider: loginOrDivider ?? this .loginOrDivider,
@@ -375,10 +375,13 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
375
375
}
376
376
return DesignVariables ._(
377
377
background: Color .lerp (background, other.background, t)! ,
378
+ bannerBgIntDanger: Color .lerp (bannerBgIntDanger, other.bannerBgIntDanger, t)! ,
378
379
bgContextMenu: Color .lerp (bgContextMenu, other.bgContextMenu, t)! ,
379
380
bgCounterUnread: Color .lerp (bgCounterUnread, other.bgCounterUnread, t)! ,
380
381
bgTopBar: Color .lerp (bgTopBar, other.bgTopBar, t)! ,
381
382
borderBar: Color .lerp (borderBar, other.borderBar, t)! ,
383
+ btnLabelAttLowIntDanger: Color .lerp (btnLabelAttLowIntDanger, other.btnLabelAttLowIntDanger, t)! ,
384
+ btnLabelAttMediumDanger: Color .lerp (btnLabelAttMediumDanger, other.btnLabelAttMediumDanger, t)! ,
382
385
composeBoxBg: Color .lerp (composeBoxBg, other.composeBoxBg, t)! ,
383
386
contextMenuCancelText: Color .lerp (contextMenuCancelText, other.contextMenuCancelText, t)! ,
384
387
contextMenuItemBg: Color .lerp (contextMenuItemBg, other.contextMenuItemBg, t)! ,
@@ -396,9 +399,6 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
396
399
atMentionMarker: Color .lerp (atMentionMarker, other.atMentionMarker, t)! ,
397
400
contextMenuCancelBg: Color .lerp (contextMenuCancelBg, other.contextMenuCancelBg, t)! ,
398
401
dmHeaderBg: Color .lerp (dmHeaderBg, other.dmHeaderBg, t)! ,
399
- errorBannerBackground: Color .lerp (errorBannerBackground, other.errorBannerBackground, t)! ,
400
- errorBannerBorder: Color .lerp (errorBannerBorder, other.errorBannerBorder, t)! ,
401
- errorBannerLabel: Color .lerp (errorBannerLabel, other.errorBannerLabel, t)! ,
402
402
groupDmConversationIcon: Color .lerp (groupDmConversationIcon, other.groupDmConversationIcon, t)! ,
403
403
groupDmConversationIconBg: Color .lerp (groupDmConversationIconBg, other.groupDmConversationIconBg, t)! ,
404
404
loginOrDivider: Color .lerp (loginOrDivider, other.loginOrDivider, t)! ,
0 commit comments