@@ -213,6 +213,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
213
213
subscriptionListHeaderLine: const HSLColor .fromAHSL (0.2 , 240 , 0.1 , 0.5 ).toColor (),
214
214
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.5 ).toColor (),
215
215
unreadCountBadgeTextForChannel: Colors .black.withValues (alpha: 0.9 ),
216
+ userStatusText: const Color (0xff808080 ),
216
217
);
217
218
218
219
static final dark = DesignVariables ._(
@@ -309,6 +310,8 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
309
310
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
310
311
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.75 ).toColor (),
311
312
unreadCountBadgeTextForChannel: Colors .white.withValues (alpha: 0.9 ),
313
+ // TODO(design-dark) unchanged in dark theme?
314
+ userStatusText: const Color (0xff808080 ),
312
315
);
313
316
314
317
DesignVariables ._({
@@ -388,6 +391,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
388
391
required this .subscriptionListHeaderLine,
389
392
required this .subscriptionListHeaderText,
390
393
required this .unreadCountBadgeTextForChannel,
394
+ required this .userStatusText,
391
395
});
392
396
393
397
/// The [DesignVariables] from the context's active theme.
@@ -480,6 +484,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
480
484
final Color subscriptionListHeaderLine;
481
485
final Color subscriptionListHeaderText;
482
486
final Color unreadCountBadgeTextForChannel;
487
+ final Color userStatusText; // In Figma, but unnamed.
483
488
484
489
@override
485
490
DesignVariables copyWith ({
@@ -559,6 +564,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
559
564
Color ? subscriptionListHeaderLine,
560
565
Color ? subscriptionListHeaderText,
561
566
Color ? unreadCountBadgeTextForChannel,
567
+ Color ? userStatusText,
562
568
}) {
563
569
return DesignVariables ._(
564
570
background: background ?? this .background,
@@ -637,6 +643,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
637
643
subscriptionListHeaderLine: subscriptionListHeaderLine ?? this .subscriptionListHeaderLine,
638
644
subscriptionListHeaderText: subscriptionListHeaderText ?? this .subscriptionListHeaderText,
639
645
unreadCountBadgeTextForChannel: unreadCountBadgeTextForChannel ?? this .unreadCountBadgeTextForChannel,
646
+ userStatusText: userStatusText ?? this .userStatusText,
640
647
);
641
648
}
642
649
@@ -722,6 +729,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
722
729
subscriptionListHeaderLine: Color .lerp (subscriptionListHeaderLine, other.subscriptionListHeaderLine, t)! ,
723
730
subscriptionListHeaderText: Color .lerp (subscriptionListHeaderText, other.subscriptionListHeaderText, t)! ,
724
731
unreadCountBadgeTextForChannel: Color .lerp (unreadCountBadgeTextForChannel, other.unreadCountBadgeTextForChannel, t)! ,
732
+ userStatusText: Color .lerp (userStatusText, other.userStatusText, t)! ,
725
733
);
726
734
}
727
735
}
0 commit comments