refactor: date time format

- generate example dynamically
- update commit/author time in histories immediately after data time format changed
This commit is contained in:
leo 2024-12-31 10:43:00 +08:00
parent a6420aff9b
commit 87e7b792bb
No known key found for this signature in database
4 changed files with 40 additions and 20 deletions

View file

@ -72,7 +72,7 @@
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="{x:Type m:DateTimeFormat}">
<Grid ColumnDefinitions="*,8,*">
<TextBlock Grid.Column="0" FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding DisplayText}"/>
<TextBlock Grid.Column="0" FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding Example}"/>
<TextBlock Grid.Column="2" FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding DateTime}" Foreground="{DynamicResource Brush.FG2}"/>
</Grid>
</DataTemplate>