@@ -539,7 +539,6 @@ class DateSeparator extends StatelessWidget {
539
539
color: Colors .black)))))),
540
540
Padding (padding: const EdgeInsets .fromLTRB (2 , 0 , 2 , textBottomPadding),
541
541
child: DateText (
542
- color: const HSLColor .fromAHSL (0.75 , 0 , 0 , 0.15 ).toColor (),
543
542
fontSize: 16 ,
544
543
height: (16 / 16 ),
545
544
timestamp: message.timestamp)),
@@ -798,7 +797,6 @@ class RecipientHeaderDate extends StatelessWidget {
798
797
return Padding (
799
798
padding: const EdgeInsets .fromLTRB (10 , 0 , 16 , 0 ),
800
799
child: DateText (
801
- color: const HSLColor .fromAHSL (0.75 , 0 , 0 , 0.15 ).toColor (),
802
800
fontSize: 16 ,
803
801
// In Figma this has a line-height of 19, but using 18
804
802
// here to match the stream/topic text widgets helps
@@ -811,13 +809,11 @@ class RecipientHeaderDate extends StatelessWidget {
811
809
class DateText extends StatelessWidget {
812
810
const DateText ({
813
811
super .key,
814
- required this .color,
815
812
required this .fontSize,
816
813
required this .height,
817
814
required this .timestamp,
818
815
});
819
816
820
- final Color color;
821
817
final double fontSize;
822
818
final double height;
823
819
final int timestamp;
@@ -827,7 +823,7 @@ class DateText extends StatelessWidget {
827
823
final zulipLocalizations = ZulipLocalizations .of (context);
828
824
return Text (
829
825
style: TextStyle (
830
- color: color ,
826
+ color: const HSLColor . fromAHSL ( 0.75 , 0 , 0 , 0.15 ). toColor () ,
831
827
fontSize: fontSize,
832
828
height: height,
833
829
// This is equivalent to css `all-small-caps`, see:
0 commit comments