diff --git a/TwitchDownloaderWPF/PageChatRender.xaml.cs b/TwitchDownloaderWPF/PageChatRender.xaml.cs index b360ea23..74c71343 100644 --- a/TwitchDownloaderWPF/PageChatRender.xaml.cs +++ b/TwitchDownloaderWPF/PageChatRender.xaml.cs @@ -21,9 +21,12 @@ using System.Drawing.Imaging; using System.Windows.Markup; using System.Collections.Concurrent; +using System.Windows.Media; using Newtonsoft.Json; using SkiaSharp; using TwitchDownloader.Properties; +using Xceed.Wpf.Toolkit; +using MessageBox = System.Windows.MessageBox; namespace TwitchDownloaderWPF { @@ -63,6 +66,7 @@ private void btnRender_Click(object sender, RoutedEventArgs e) saveFileDialog.Filter = "MP4 Files | *.mp4"; saveFileDialog.RestoreDirectory = true; + saveFileDialog.FileName = Path.GetFileNameWithoutExtension(textJson.Text) + ".mp4"; if (saveFileDialog.ShowDialog() == true) { @@ -1090,6 +1094,23 @@ private void Page_Initialized(object sender, EventArgs e) if (comboFont.Items.Contains("Arial")) comboFont.SelectedItem = "Arial"; + for (int i = 0; i < colorBackground.StandardColors.Count; i++) + { + if (colorBackground.StandardColors[i].Color.Value.A < 255) + { + colorBackground.StandardColors.RemoveAt(i); + i--; + } + } + for (int i = 0; i < colorFont.StandardColors.Count; i++) + { + if (colorBackground.StandardColors[i].Color.Value.A < 255) + { + colorBackground.StandardColors.RemoveAt(i); + i--; + } + } + LoadSettings(); }