fix: show the MMD PDF wordmark instead of the upstream one in Controls/DialogChrome.cs
This commit is contained in:
@@ -67,9 +67,9 @@ namespace MmdPdf
|
|||||||
int kp = fullTitle?.IndexOf("MmdPdf", StringComparison.Ordinal) ?? -1;
|
int kp = fullTitle?.IndexOf("MmdPdf", StringComparison.Ordinal) ?? -1;
|
||||||
if (kp >= 0)
|
if (kp >= 0)
|
||||||
{
|
{
|
||||||
// Killer + PDF in one TextBlock so the two sizes share a baseline (cohesive wordmark).
|
// MMD + PDF in one TextBlock so the two sizes share a baseline (cohesive wordmark).
|
||||||
var logoTb = new TextBlock { VerticalAlignment = VerticalAlignment.Center };
|
var logoTb = new TextBlock { VerticalAlignment = VerticalAlignment.Center };
|
||||||
logoTb.Inlines.Add(new System.Windows.Documents.Run("Killer") { FontFamily = wordmark, FontWeight = FontWeights.Normal, FontSize = 16, Foreground = primary });
|
logoTb.Inlines.Add(new System.Windows.Documents.Run("MMD ") { FontFamily = wordmark, FontWeight = FontWeights.Normal, FontSize = 16, Foreground = primary });
|
||||||
logoTb.Inlines.Add(new System.Windows.Documents.Run("PDF") { FontFamily = wordmarkPdf, FontWeight = FontWeights.Bold, FontSize = 20.8, Foreground = logo });
|
logoTb.Inlines.Add(new System.Windows.Documents.Run("PDF") { FontFamily = wordmarkPdf, FontWeight = FontWeights.Bold, FontSize = 20.8, Foreground = logo });
|
||||||
sp.Children.Add(logoTb);
|
sp.Children.Add(logoTb);
|
||||||
string after = fullTitle![(kp + "MmdPdf".Length)..];
|
string after = fullTitle![(kp + "MmdPdf".Length)..];
|
||||||
|
|||||||
Reference in New Issue
Block a user