Skip to content

Commit 4f28408

Browse files
committed
use tabular figures for chat message timestamps
1 parent b9dae5d commit 4f28408

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/models/irc.dart

+8-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ class IRCMessage {
146146
span.add(
147147
TextSpan(
148148
text: '${DateFormat.Hm().format(parsedTime)} ',
149-
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
149+
style: style?.copyWith(
150+
color: style.color?.withValues(alpha: 0.5),
151+
fontFeatures: [FontFeature.tabularFigures()],
152+
),
150153
),
151154
);
152155
}
@@ -155,7 +158,10 @@ class IRCMessage {
155158
span.add(
156159
TextSpan(
157160
text: '${DateFormat('h:mm').format(parsedTime)} ',
158-
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
161+
style: style?.copyWith(
162+
color: style.color?.withValues(alpha: 0.5),
163+
fontFeatures: [FontFeature.tabularFigures()],
164+
),
159165
),
160166
);
161167
}

0 commit comments

Comments
 (0)