File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 21
21
using System . Drawing . Imaging ;
22
22
using System . Windows . Markup ;
23
23
using System . Collections . Concurrent ;
24
+ using System . Windows . Media ;
24
25
using Newtonsoft . Json ;
25
26
using SkiaSharp ;
26
27
using TwitchDownloader . Properties ;
28
+ using Xceed . Wpf . Toolkit ;
29
+ using MessageBox = System . Windows . MessageBox ;
27
30
28
31
namespace TwitchDownloaderWPF
29
32
{
@@ -63,6 +66,7 @@ private void btnRender_Click(object sender, RoutedEventArgs e)
63
66
64
67
saveFileDialog . Filter = "MP4 Files | *.mp4" ;
65
68
saveFileDialog . RestoreDirectory = true ;
69
+ saveFileDialog . FileName = Path . GetFileNameWithoutExtension ( textJson . Text ) + ".mp4" ;
66
70
67
71
if ( saveFileDialog . ShowDialog ( ) == true )
68
72
{
@@ -1090,6 +1094,23 @@ private void Page_Initialized(object sender, EventArgs e)
1090
1094
if ( comboFont . Items . Contains ( "Arial" ) )
1091
1095
comboFont . SelectedItem = "Arial" ;
1092
1096
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
+
1093
1114
LoadSettings ( ) ;
1094
1115
}
1095
1116
You can’t perform that action at this time.
0 commit comments