@@ -203,6 +203,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
203
203
subscriptionListHeaderLine: const HSLColor .fromAHSL (0.2 , 240 , 0.1 , 0.5 ).toColor (),
204
204
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.5 ).toColor (),
205
205
unreadCountBadgeTextForChannel: Colors .black.withValues (alpha: 0.9 ),
206
+ userStatusText: const Color (0xff808080 ),
206
207
);
207
208
208
209
static final dark = DesignVariables ._(
@@ -289,6 +290,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
289
290
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
290
291
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.75 ).toColor (),
291
292
unreadCountBadgeTextForChannel: Colors .white.withValues (alpha: 0.9 ),
293
+ // TODO(design-dark) unchanged in dark theme?
294
+ userStatusText: const Color (0xff808080 ),
292
295
);
293
296
294
297
DesignVariables ._({
@@ -363,6 +366,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
363
366
required this .subscriptionListHeaderLine,
364
367
required this .subscriptionListHeaderText,
365
368
required this .unreadCountBadgeTextForChannel,
369
+ required this .userStatusText,
366
370
});
367
371
368
372
/// The [DesignVariables] from the context's active theme.
@@ -450,6 +454,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
450
454
final Color subscriptionListHeaderLine;
451
455
final Color subscriptionListHeaderText;
452
456
final Color unreadCountBadgeTextForChannel;
457
+ final Color userStatusText; // In Figma, but unnamed.
453
458
454
459
@override
455
460
DesignVariables copyWith ({
@@ -524,6 +529,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
524
529
Color ? subscriptionListHeaderLine,
525
530
Color ? subscriptionListHeaderText,
526
531
Color ? unreadCountBadgeTextForChannel,
532
+ Color ? userStatusText,
527
533
}) {
528
534
return DesignVariables ._(
529
535
background: background ?? this .background,
@@ -597,6 +603,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
597
603
subscriptionListHeaderLine: subscriptionListHeaderLine ?? this .subscriptionListHeaderLine,
598
604
subscriptionListHeaderText: subscriptionListHeaderText ?? this .subscriptionListHeaderText,
599
605
unreadCountBadgeTextForChannel: unreadCountBadgeTextForChannel ?? this .unreadCountBadgeTextForChannel,
606
+ userStatusText: userStatusText ?? this .userStatusText,
600
607
);
601
608
}
602
609
@@ -677,6 +684,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
677
684
subscriptionListHeaderLine: Color .lerp (subscriptionListHeaderLine, other.subscriptionListHeaderLine, t)! ,
678
685
subscriptionListHeaderText: Color .lerp (subscriptionListHeaderText, other.subscriptionListHeaderText, t)! ,
679
686
unreadCountBadgeTextForChannel: Color .lerp (unreadCountBadgeTextForChannel, other.unreadCountBadgeTextForChannel, t)! ,
687
+ userStatusText: Color .lerp (userStatusText, other.userStatusText, t)! ,
680
688
);
681
689
}
682
690
}
0 commit comments