use tabular figures for chat message timestamps

This commit is contained in:
Tommy Chow 2024-12-23 15:28:38 -05:00
parent b9dae5df88
commit 4f28408be6

View file

@ -146,7 +146,10 @@ class IRCMessage {
span.add(
TextSpan(
text: '${DateFormat.Hm().format(parsedTime)} ',
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
style: style?.copyWith(
color: style.color?.withValues(alpha: 0.5),
fontFeatures: [FontFeature.tabularFigures()],
),
),
);
}
@ -155,7 +158,10 @@ class IRCMessage {
span.add(
TextSpan(
text: '${DateFormat('h:mm').format(parsedTime)} ',
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
style: style?.copyWith(
color: style.color?.withValues(alpha: 0.5),
fontFeatures: [FontFeature.tabularFigures()],
),
),
);
}