@@ -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
loginOrDivider: const Color (0xffdedede ),
@@ -160,6 +165,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
160
165
mainBackground: const Color (0xff1d1d1d ),
161
166
title: const Color (0xffffffff ),
162
167
channelColorSwatches: ChannelColorSwatches .dark,
168
+ actionSheetBackground: const HSLColor .fromAHSL (1 , 0 , 0 , 0.14 ).toColor (),
169
+ actionSheetCancelButtonBackground: const HSLColor .fromAHSL (0.15 , 240 , 0.05 , 0.50 ).toColor (),
170
+ actionSheetCancelButtonForeground: const HSLColor .fromAHSL (0.75 , 0 , 0 , 1 ).toColor (),
171
+ actionSheetMenuButtonBackground: const HSLColor .fromAHSL (0.12 , 240.89 , 0.98 , 0.73 ).toColor (),
172
+ actionSheetMenuButtonForeground: const HSLColor .fromAHSL (1 , 237.17 , 0.96 , 0.78 ).toColor (),
163
173
// TODO(#95) need proper dark-theme color (this is ad hoc)
164
174
atMentionMarker: const HSLColor .fromAHSL (0.4 , 0 , 0 , 1 ).toColor (),
165
175
dmHeaderBg: const HSLColor .fromAHSL (1 , 46 , 0.15 , 0.2 ).toColor (),
@@ -183,6 +193,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
183
193
required this .mainBackground,
184
194
required this .title,
185
195
required this .channelColorSwatches,
196
+ required this .actionSheetBackground,
197
+ required this .actionSheetCancelButtonBackground,
198
+ required this .actionSheetCancelButtonForeground,
199
+ required this .actionSheetMenuButtonBackground,
200
+ required this .actionSheetMenuButtonForeground,
186
201
required this .atMentionMarker,
187
202
required this .dmHeaderBg,
188
203
required this .loginOrDivider,
@@ -216,6 +231,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
216
231
final ChannelColorSwatches channelColorSwatches;
217
232
218
233
// Not named variables in Figma; taken from older Figma drafts, or elsewhere.
234
+ final Color actionSheetBackground;
235
+ final Color actionSheetCancelButtonBackground;
236
+ final Color actionSheetCancelButtonForeground;
237
+ final Color actionSheetMenuButtonBackground;
238
+ final Color actionSheetMenuButtonForeground;
219
239
final Color atMentionMarker;
220
240
final Color dmHeaderBg;
221
241
final Color loginOrDivider; // TODO(#95) need proper dark-theme color (this is ad hoc)
@@ -236,6 +256,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
236
256
Color ? mainBackground,
237
257
Color ? title,
238
258
ChannelColorSwatches ? channelColorSwatches,
259
+ Color ? actionSheetBackground,
260
+ Color ? actionSheetCancelButtonBackground,
261
+ Color ? actionSheetCancelButtonForeground,
262
+ Color ? actionSheetMenuButtonBackground,
263
+ Color ? actionSheetMenuButtonForeground,
239
264
Color ? atMentionMarker,
240
265
Color ? dmHeaderBg,
241
266
Color ? loginOrDivider,
@@ -255,6 +280,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
255
280
mainBackground: mainBackground ?? this .mainBackground,
256
281
title: title ?? this .title,
257
282
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
283
+ actionSheetBackground: actionSheetBackground ?? this .actionSheetBackground,
284
+ actionSheetCancelButtonBackground: actionSheetCancelButtonBackground ?? this .actionSheetCancelButtonBackground,
285
+ actionSheetCancelButtonForeground: actionSheetCancelButtonForeground ?? this .actionSheetCancelButtonForeground,
286
+ actionSheetMenuButtonBackground: actionSheetMenuButtonBackground ?? this .actionSheetMenuButtonBackground,
287
+ actionSheetMenuButtonForeground: actionSheetMenuButtonForeground ?? this .actionSheetMenuButtonBackground,
258
288
atMentionMarker: atMentionMarker ?? this .atMentionMarker,
259
289
dmHeaderBg: dmHeaderBg ?? this .dmHeaderBg,
260
290
loginOrDivider: loginOrDivider ?? this .loginOrDivider,
@@ -281,6 +311,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
281
311
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
282
312
title: Color .lerp (title, other.title, t)! ,
283
313
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
314
+ actionSheetBackground: Color .lerp (actionSheetBackground, other.actionSheetBackground, t)! ,
315
+ actionSheetCancelButtonBackground: Color .lerp (actionSheetCancelButtonBackground, other.actionSheetCancelButtonBackground, t)! ,
316
+ actionSheetCancelButtonForeground: Color .lerp (actionSheetCancelButtonForeground, other.actionSheetCancelButtonForeground, t)! ,
317
+ actionSheetMenuButtonBackground: Color .lerp (actionSheetMenuButtonBackground, other.actionSheetMenuButtonBackground, t)! ,
318
+ actionSheetMenuButtonForeground: Color .lerp (actionSheetMenuButtonForeground, other.actionSheetMenuButtonBackground, t)! ,
284
319
atMentionMarker: Color .lerp (atMentionMarker, other.atMentionMarker, t)! ,
285
320
dmHeaderBg: Color .lerp (dmHeaderBg, other.dmHeaderBg, t)! ,
286
321
loginOrDivider: Color .lerp (loginOrDivider, other.loginOrDivider, t)! ,
0 commit comments