mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
fix(wpf): missed rebranding on about page
This commit is contained in:
parent
547cde5940
commit
5da87a008f
|
@ -45,12 +45,8 @@
|
||||||
</Style>
|
</Style>
|
||||||
</StackPanel.Resources>
|
</StackPanel.Resources>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="B" Style="{StaticResource Pinyin}"/>
|
<TextBlock Text="mikufans" Style="{StaticResource Pinyin}"/>
|
||||||
<TextBlock Text="B" Style="{StaticResource MainText}"/>
|
<TextBlock Text="mikufans" Style="{StaticResource MainText}"/>
|
||||||
</StackPanel>
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock Text="zhàn" Style="{StaticResource Pinyin}"/>
|
|
||||||
<TextBlock Text="站" Style="{StaticResource MainText}"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="lù" Style="{StaticResource Pinyin}"/>
|
<TextBlock Text="lù" Style="{StaticResource Pinyin}"/>
|
||||||
|
@ -77,7 +73,7 @@
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock FontSize="16" Text="{l:Loc About_Copyright}"/>
|
<TextBlock FontSize="16" Text="{l:Loc About_Copyright}"/>
|
||||||
<TextBlock FontSize="16" Text=" © 2021 Genteure"/>
|
<TextBlock FontSize="16" Text=" © Genteure" x:Name="CopyrightTextBlock"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock FontSize="16" TextWrapping="Wrap" Text="{l:Loc About_License}"/>
|
<TextBlock FontSize="16" TextWrapping="Wrap" Text="{l:Loc About_License}"/>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace BililiveRecorder.WPF.Pages
|
namespace BililiveRecorder.WPF.Pages
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -8,6 +10,15 @@ namespace BililiveRecorder.WPF.Pages
|
||||||
public AboutPage()
|
public AboutPage()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
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