Skip to content

Commit 7f1d2d6

Browse files
committed
Remove alpha options from colors
1 parent 6c8da9e commit 7f1d2d6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

TwitchDownloaderWPF/PageChatRender.xaml.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
using System.Drawing.Imaging;
2222
using System.Windows.Markup;
2323
using System.Collections.Concurrent;
24+
using System.Windows.Media;
2425
using Newtonsoft.Json;
2526
using SkiaSharp;
2627
using TwitchDownloader.Properties;
28+
using Xceed.Wpf.Toolkit;
29+
using MessageBox = System.Windows.MessageBox;
2730

2831
namespace TwitchDownloaderWPF
2932
{
@@ -63,6 +66,7 @@ private void btnRender_Click(object sender, RoutedEventArgs e)
6366

6467
saveFileDialog.Filter = "MP4 Files | *.mp4";
6568
saveFileDialog.RestoreDirectory = true;
69+
saveFileDialog.FileName = Path.GetFileNameWithoutExtension(textJson.Text) + ".mp4";
6670

6771
if (saveFileDialog.ShowDialog() == true)
6872
{
@@ -1090,6 +1094,23 @@ private void Page_Initialized(object sender, EventArgs e)
10901094
if (comboFont.Items.Contains("Arial"))
10911095
comboFont.SelectedItem = "Arial";
10921096

1097+
for (int i = 0; i < colorBackground.StandardColors.Count; i++)
1098+
{
1099+
if (colorBackground.StandardColors[i].Color.Value.A < 255)
1100+
{
1101+
colorBackground.StandardColors.RemoveAt(i);
1102+
i--;
1103+
}
1104+
}
1105+
for (int i = 0; i < colorFont.StandardColors.Count; i++)
1106+
{
1107+
if (colorBackground.StandardColors[i].Color.Value.A < 255)
1108+
{
1109+
colorBackground.StandardColors.RemoveAt(i);
1110+
i--;
1111+
}
1112+
}
1113+
10931114
LoadSettings();
10941115
}
10951116

0 commit comments

Comments
 (0)