From 1da06da5b1329e2b33c899f7d43c1bf5289e2179 Mon Sep 17 00:00:00 2001 From: GyroPlatter Date: Sat, 20 Dec 2025 13:18:26 -0500 Subject: [PATCH] Replace website domain with post date in RSS feed --- .../Windows/RSSReader.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Falcon BMS Alternative Launcher/Windows/RSSReader.cs b/Falcon BMS Alternative Launcher/Windows/RSSReader.cs index d21680a..aa65477 100644 --- a/Falcon BMS Alternative Launcher/Windows/RSSReader.cs +++ b/Falcon BMS Alternative Launcher/Windows/RSSReader.cs @@ -100,11 +100,12 @@ public void Write(System.Windows.Controls.TextBlock tb) { if (webSite != null) { - tb.Inlines.Add(new Run("from ") { FontStyle = FontStyles.Italic, FontSize = 12 }); - Hyperlink topLink = new Hyperlink() { NavigateUri = new Uri(link) }; - topLink.Inlines.Add(new Run(webSite.Replace("https://","")) { FontStyle = FontStyles.Italic, Foreground = new SolidColorBrush(Color.FromArgb(0x80, 0xff, 0xff, 0xff)), FontSize = 12 }); - topLink.RequestNavigate += Try_RequestNavigateTop; - tb.Inlines.Add(topLink); + tb.Inlines.Add(new Run(dateTime.ToString("MMMM d, yyyy")) + { + FontStyle = FontStyles.Italic, + FontSize = 12, + Foreground = new SolidColorBrush(Color.FromArgb(0x80, 0xff, 0xff, 0xff)) + }); tb.Inlines.Add("\n"); } @@ -117,7 +118,7 @@ public void Write(System.Windows.Controls.TextBlock tb) tb.Inlines.Add("\n"); Hyperlink hyperLink = new Hyperlink() {NavigateUri = new Uri(link)}; - hyperLink.Inlines.Add(new Run(">> Read More") { Foreground = Brushes.Aquamarine, FontSize = 12 }); + hyperLink.Inlines.Add(new Run(">> Read More") { Foreground = (Brush)Application.Current.Resources["GridFocusedFgBrush"], FontSize = 12 }); hyperLink.RequestNavigate += Try_RequestNavigate; tb.Inlines.Add(hyperLink);