This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
60 lines (60 loc) · 4.15 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<mah:MetroWindow x:Class="Vrc_Lyric_Format_Convert_GUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Vrc_Lyric_Format_Convert_GUI"
xmlns:mah ="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
mc:Ignorable="d"
Title="Vrc Converter - v1.3 有问题请联系组内或开 Issue" Height="600" Width="520">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="0"/>
</Grid.ColumnDefinitions>
<GroupBox Grid.Column="1" Header="输出内容" FontSize="18">
<TextBox x:Name="OutPut" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" TextWrapping="Wrap" Grid.Column="1"/>
</GroupBox>
<GroupBox Grid.Column="0" Header="设定" FontSize="18">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<StackPanel>
<GroupBox Header="文件位置" FontSize="18">
<StackPanel>
<TextBlock x:Name="SourceFileDisplay" TextWrapping="Wrap" Text="源文件路径:" FontSize="14" Padding="5,0"/>
<Button Content="选择源文件路径" x:Name="SourcePathInput" FontSize="18" Margin="5,0" Click="SourcePathInput_Click"/>
<TextBlock x:Name="OutPutFileDisplay" TextWrapping="Wrap" Text="输出文件路径:源文件路径下" FontSize="14" Padding="5,0" Margin="0,5,0,0"/>
<Button Content="选择输出文件路径" x:Name="OutPutPathInput" FontSize="18" Margin="5,0" Click="OutPutPathInput_Click"/>
<CheckBox x:Name="IsRecursion" Content="转换目录下所有歌词文件" VerticalContentAlignment="Center" Margin="5,5,0,0" Checked="IsRecursion_Checked" Unchecked="IsRecursion_Unchecked"/>
</StackPanel>
</GroupBox>
<GroupBox Header="源文件格式">
<StackPanel>
<RadioButton x:Name="txtRadio" GroupName="DataType" Content="txt" Margin="5,0,0,0" FontSize="18" VerticalContentAlignment="Center"/>
<RadioButton x:Name="mlrcRadio" GroupName="DataType" Content="mlrc" Margin="5,0,0,0" FontSize="18" VerticalContentAlignment="Center"/>
<RadioButton x:Name="assRadio" GroupName="DataType" Content="ass" Margin="5,0,0,0" FontSize="18" VerticalContentAlignment="Center"/>
</StackPanel>
</GroupBox>
<GroupBox Header="Json 设置 (看不懂不用动)">
<StackPanel>
<TextBlock TextWrapping="Wrap" Text="Json 缩进空格数:" FontSize="14" Padding="5,0"/>
<TextBox x:Name="JsonIndent" FontSize="18" Margin="5,0" Text="2"/>
</StackPanel>
</GroupBox>
<GroupBox>
<StackPanel>
<Button x:Name="README" Content="点击查看说明" Margin="0,5,0,0" Click="README_Click" FontSize="18"/>
<Button x:Name="CheckUpdateButton" Content="检查更新" Margin="0,5,0,0" FontSize="18" Click="CheckUpdateButton_Click"/>
</StackPanel>
</GroupBox>
</StackPanel>
<Button x:Name="Run" Click="Run_Click" Grid.Row="1" Content="走你!" FontSize="18"/>
</Grid>
</GroupBox>
</Grid>
</ScrollViewer>
</mah:MetroWindow>