@@ -133,7 +133,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
133
133
title: const Color (0xff1a1a1a ),
134
134
channelColorSwatches: ChannelColorSwatches .light,
135
135
atMentionMarker: const HSLColor .fromAHSL (0.5 , 0 , 0 , 0.2 ).toColor (),
136
- contextMenuCancelBg: const Color (0xff797986 ),
136
+ contextMenuCancelBg: const Color (0xff797986 ).withValues (alpha: 0.15 ),
137
+ contextMenuCancelPressedBg: const Color (0xff797986 ).withValues (alpha: 0.20 ),
137
138
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
138
139
errorBannerBackground: const HSLColor .fromAHSL (1 , 4 , 0.33 , 0.90 ).toColor (),
139
140
errorBannerBorder: const HSLColor .fromAHSL (0.4 , 3 , 0.57 , 0.33 ).toColor (),
@@ -172,7 +173,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
172
173
textInput: const Color (0xffffffff ).withValues (alpha: 0.9 ),
173
174
title: const Color (0xffffffff ),
174
175
channelColorSwatches: ChannelColorSwatches .dark,
175
- contextMenuCancelBg: const Color (0xff797986 ), // the same as the light mode in Figma
176
+ contextMenuCancelBg: const Color (0xff797986 ).withValues (alpha: 0.15 ), // the same as the light mode in Figma
177
+ contextMenuCancelPressedBg: const Color (0xff797986 ).withValues (alpha: 0.20 ), // the same as the light mode in Figma
176
178
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
177
179
atMentionMarker: const HSLColor .fromAHSL (0.4 , 0 , 0 , 1 ).toColor (),
178
180
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
@@ -221,6 +223,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
221
223
required this .channelColorSwatches,
222
224
required this .atMentionMarker,
223
225
required this .contextMenuCancelBg,
226
+ required this .contextMenuCancelPressedBg,
224
227
required this .dmHeaderBg,
225
228
required this .errorBannerBackground,
226
229
required this .errorBannerBorder,
@@ -273,6 +276,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
273
276
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
274
277
final Color atMentionMarker;
275
278
final Color contextMenuCancelBg; // In Figma, but unnamed.
279
+ final Color contextMenuCancelPressedBg; // In Figma, but unnamed.
276
280
final Color dmHeaderBg;
277
281
final Color errorBannerBackground;
278
282
final Color errorBannerBorder;
@@ -312,6 +316,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
312
316
ChannelColorSwatches ? channelColorSwatches,
313
317
Color ? atMentionMarker,
314
318
Color ? contextMenuCancelBg,
319
+ Color ? contextMenuCancelPressedBg,
315
320
Color ? dmHeaderBg,
316
321
Color ? errorBannerBackground,
317
322
Color ? errorBannerBorder,
@@ -350,6 +355,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
350
355
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
351
356
atMentionMarker: atMentionMarker ?? this .atMentionMarker,
352
357
contextMenuCancelBg: contextMenuCancelBg ?? this .contextMenuCancelBg,
358
+ contextMenuCancelPressedBg: contextMenuCancelPressedBg ?? this .contextMenuCancelPressedBg,
353
359
dmHeaderBg: dmHeaderBg ?? this .dmHeaderBg,
354
360
errorBannerBackground: errorBannerBackground ?? this .errorBannerBackground,
355
361
errorBannerBorder: errorBannerBorder ?? this .errorBannerBorder,
@@ -395,6 +401,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
395
401
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
396
402
atMentionMarker: Color .lerp (atMentionMarker, other.atMentionMarker, t)! ,
397
403
contextMenuCancelBg: Color .lerp (contextMenuCancelBg, other.contextMenuCancelBg, t)! ,
404
+ contextMenuCancelPressedBg: Color .lerp (contextMenuCancelPressedBg, other.contextMenuCancelPressedBg, t)! ,
398
405
dmHeaderBg: Color .lerp (dmHeaderBg, other.dmHeaderBg, t)! ,
399
406
errorBannerBackground: Color .lerp (errorBannerBackground, other.errorBannerBackground, t)! ,
400
407
errorBannerBorder: Color .lerp (errorBannerBorder, other.errorBannerBorder, t)! ,
0 commit comments