mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
fix(wpf): missed rebranding on about page
This commit is contained in:
parent
547cde5940
commit
5da87a008f
|
@ -45,12 +45,8 @@
|
|||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<StackPanel>
|
||||
<TextBlock Text="B" Style="{StaticResource Pinyin}"/>
|
||||
<TextBlock Text="B" Style="{StaticResource MainText}"/>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="zhàn" Style="{StaticResource Pinyin}"/>
|
||||
<TextBlock Text="站" Style="{StaticResource MainText}"/>
|
||||
<TextBlock Text="mikufans" Style="{StaticResource Pinyin}"/>
|
||||
<TextBlock Text="mikufans" Style="{StaticResource MainText}"/>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="lù" Style="{StaticResource Pinyin}"/>
|
||||
|
@ -77,7 +73,7 @@
|
|||
</TextBlock>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock FontSize="16" Text="{l:Loc About_Copyright}"/>
|
||||
<TextBlock FontSize="16" Text=" © 2021 Genteure"/>
|
||||
<TextBlock FontSize="16" Text=" © Genteure" x:Name="CopyrightTextBlock"/>
|
||||
</StackPanel>
|
||||
<TextBlock FontSize="16" TextWrapping="Wrap" Text="{l:Loc About_License}"/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace BililiveRecorder.WPF.Pages
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -8,6 +10,15 @@ namespace BililiveRecorder.WPF.Pages
|
|||
public AboutPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
if (!string.IsNullOrEmpty(GitVersionInformation.CommitDate))
|
||||
{
|
||||
var match = Regex.Match(GitVersionInformation.CommitDate, @"^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$");
|
||||
if (match.Success)
|
||||
{
|
||||
this.CopyrightTextBlock.Text = $" © {match.Groups["year"].Value} Genteure";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user