Skip to content

Commit

Permalink
Remove alpha options from colors
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Nov 2, 2019
1 parent 6c8da9e commit 7f1d2d6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 7f1d2d6

Please sign in to comment.