@@ -139,6 +139,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
139
139
mainBackground: const Color (0xfff0f0f0 ),
140
140
title: const Color (0xff1a1a1a ),
141
141
channelColorSwatches: ChannelColorSwatches .light,
142
+ actionSheetBackground: const HSLColor .fromAHSL (1 , 0 , 0 , 0.94 ).toColor (),
143
+ actionSheetCancelButtonBackground: const HSLColor .fromAHSL (0.15 , 240 , 0.05 , 0.50 ).toColor (),
144
+ actionSheetCancelButtonForeground: const HSLColor .fromAHSL (1 , 0 , 0 , 0.13 ).toColor (),
145
+ actionSheetMenuButtonBackground: const HSLColor .fromAHSL (0.12 , 243.53 , 0.69 , 0.61 ).toColor (),
146
+ actionSheetMenuButtonForeground: const HSLColor .fromAHSL (1 , 251.74 , 0.70 , 0.38 ).toColor (),
142
147
atMentionMarker: const HSLColor .fromAHSL (0.5 , 0 , 0 , 0.2 ).toColor (),
143
148
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.35 , 0.93 ).toColor (),
144
149
errorBannerBackground: const HSLColor .fromAHSL (1 , 4 , 0.33 , 0.90 ).toColor (),
@@ -167,6 +172,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
167
172
mainBackground: const Color (0xff1d1d1d ),
168
173
title: const Color (0xffffffff ),
169
174
channelColorSwatches: ChannelColorSwatches .dark,
175
+ actionSheetBackground: const HSLColor .fromAHSL (1 , 0 , 0 , 0.14 ).toColor (),
176
+ actionSheetCancelButtonBackground: const HSLColor .fromAHSL (0.15 , 240 , 0.05 , 0.50 ).toColor (),
177
+ actionSheetCancelButtonForeground: const HSLColor .fromAHSL (0.75 , 0 , 0 , 1 ).toColor (),
178
+ actionSheetMenuButtonBackground: const HSLColor .fromAHSL (0.12 , 240.89 , 0.98 , 0.73 ).toColor (),
179
+ actionSheetMenuButtonForeground: const HSLColor .fromAHSL (1 , 237.17 , 0.96 , 0.78 ).toColor (),
170
180
// TODO(#95) need proper dark-theme color (this is ad hoc)
171
181
atMentionMarker: const HSLColor .fromAHSL (0.4 , 0 , 0 , 1 ).toColor (),
172
182
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
@@ -201,6 +211,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
201
211
required this .mainBackground,
202
212
required this .title,
203
213
required this .channelColorSwatches,
214
+ required this .actionSheetBackground,
215
+ required this .actionSheetCancelButtonBackground,
216
+ required this .actionSheetCancelButtonForeground,
217
+ required this .actionSheetMenuButtonBackground,
218
+ required this .actionSheetMenuButtonForeground,
204
219
required this .atMentionMarker,
205
220
required this .dmHeaderBg,
206
221
required this .errorBannerBackground,
@@ -241,6 +256,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
241
256
final ChannelColorSwatches channelColorSwatches;
242
257
243
258
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
259
+ final Color actionSheetBackground;
260
+ final Color actionSheetCancelButtonBackground;
261
+ final Color actionSheetCancelButtonForeground;
262
+ final Color actionSheetMenuButtonBackground;
263
+ final Color actionSheetMenuButtonForeground;
244
264
final Color atMentionMarker;
245
265
final Color dmHeaderBg;
246
266
final Color errorBannerBackground;
@@ -268,6 +288,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
268
288
Color ? mainBackground,
269
289
Color ? title,
270
290
ChannelColorSwatches ? channelColorSwatches,
291
+ Color ? actionSheetBackground,
292
+ Color ? actionSheetCancelButtonBackground,
293
+ Color ? actionSheetCancelButtonForeground,
294
+ Color ? actionSheetMenuButtonBackground,
295
+ Color ? actionSheetMenuButtonForeground,
271
296
Color ? atMentionMarker,
272
297
Color ? dmHeaderBg,
273
298
Color ? errorBannerBackground,
@@ -294,6 +319,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
294
319
mainBackground: mainBackground ?? this .mainBackground,
295
320
title: title ?? this .title,
296
321
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
322
+ actionSheetBackground: actionSheetBackground ?? this .actionSheetBackground,
323
+ actionSheetCancelButtonBackground: actionSheetCancelButtonBackground ?? this .actionSheetCancelButtonBackground,
324
+ actionSheetCancelButtonForeground: actionSheetCancelButtonForeground ?? this .actionSheetCancelButtonForeground,
325
+ actionSheetMenuButtonBackground: actionSheetMenuButtonBackground ?? this .actionSheetMenuButtonBackground,
326
+ actionSheetMenuButtonForeground: actionSheetMenuButtonForeground ?? this .actionSheetMenuButtonBackground,
297
327
atMentionMarker: atMentionMarker ?? this .atMentionMarker,
298
328
dmHeaderBg: dmHeaderBg ?? this .dmHeaderBg,
299
329
errorBannerBackground: errorBannerBackground ?? this .errorBannerBackground,
@@ -327,6 +357,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
327
357
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
328
358
title: Color .lerp (title, other.title, t)! ,
329
359
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
360
+ actionSheetBackground: Color .lerp (actionSheetBackground, other.actionSheetBackground, t)! ,
361
+ actionSheetCancelButtonBackground: Color .lerp (actionSheetCancelButtonBackground, other.actionSheetCancelButtonBackground, t)! ,
362
+ actionSheetCancelButtonForeground: Color .lerp (actionSheetCancelButtonForeground, other.actionSheetCancelButtonForeground, t)! ,
363
+ actionSheetMenuButtonBackground: Color .lerp (actionSheetMenuButtonBackground, other.actionSheetMenuButtonBackground, t)! ,
364
+ actionSheetMenuButtonForeground: Color .lerp (actionSheetMenuButtonForeground, other.actionSheetMenuButtonBackground, t)! ,
330
365
atMentionMarker: Color .lerp (atMentionMarker, other.atMentionMarker, t)! ,
331
366
dmHeaderBg: Color .lerp (dmHeaderBg, other.dmHeaderBg, t)! ,
332
367
errorBannerBackground: Color .lerp (errorBannerBackground, other.errorBannerBackground, t)! ,
0 commit comments