mirror of
https://github.com/casksteven/Sweaty-Launcher.git
synced 2024-06-24 21:09:27 +00:00
174 lines
8.1 KiB
XML
174 lines
8.1 KiB
XML
<UserControl
|
|
x:Class="Launcher.Control.ServerEditControl"
|
|
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:local="clr-namespace:Launcher.Control"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prop="clr-namespace:Launcher.Properties"
|
|
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
|
|
Name="root"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
d:Visibility="Visible"
|
|
Visibility="Collapsed"
|
|
mc:Ignorable="d">
|
|
<Grid Background="#aa000000">
|
|
|
|
<Border
|
|
Width="600"
|
|
MinHeight="200"
|
|
MaxHeight="400"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="#f3f6fc"
|
|
CornerRadius="20">
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<ScrollViewer>
|
|
|
|
<StackPanel>
|
|
<TextBlock
|
|
Margin="0,0,0,6"
|
|
FontSize="17"
|
|
FontWeight="Bold"
|
|
Foreground="#294681"
|
|
Text="{x:Static prop:Resources.h_serveredit}" />
|
|
|
|
<TextBox
|
|
xmlns:Model="clr-namespace:Launcher.Model"
|
|
Grid.Column="1"
|
|
MinWidth="100"
|
|
Margin="0,5,5,5"
|
|
Padding="8"
|
|
pu:TextBoxHelper.CornerRadius="4"
|
|
pu:TextBoxHelper.FocusedBorderBrush="#2a73c5"
|
|
pu:TextBoxHelper.Watermark="{x:Static prop:Resources.tip_srvname}"
|
|
Background="Transparent"
|
|
BorderThickness="1"
|
|
FontSize="14"
|
|
Text="{Binding ElementName=root, Path=ServerItem.Name}" />
|
|
|
|
<Grid Margin="0,0,5,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox
|
|
xmlns:Model="clr-namespace:Launcher.Model"
|
|
MinWidth="100"
|
|
Margin="0,5,5,5"
|
|
Padding="8"
|
|
pu:TextBoxHelper.CornerRadius="4"
|
|
pu:TextBoxHelper.FocusedBorderBrush="#2a73c5"
|
|
pu:TextBoxHelper.Watermark="127.0.0.1:8080"
|
|
Background="Transparent"
|
|
BorderThickness="1"
|
|
FontSize="14"
|
|
Text="{Binding ElementName=root, Path=ServerItem.proxy.ProxyServer}" />
|
|
|
|
<CheckBox
|
|
Grid.Column="1"
|
|
pu:CheckBoxHelper.CheckedGlyphBrush="#1e64d4"
|
|
pu:CheckBoxHelper.CornerRadius="4"
|
|
pu:CheckBoxHelper.GlyphThickness="3"
|
|
pu:CheckBoxHelper.HoverBorderBrush="#1e64d4"
|
|
Content="{x:Static prop:Resources.cb_usehttp}"
|
|
FontSize="16"
|
|
IsChecked="{Binding ElementName=root, Path=ServerItem.proxy.UseHttp}" />
|
|
</Grid>
|
|
<!--<TextBox
|
|
xmlns:Model="clr-namespace:Launcher.Model"
|
|
Grid.Column="1"
|
|
MinWidth="100"
|
|
Margin="0,5,0,5"
|
|
Padding="8"
|
|
pu:TextBoxHelper.CornerRadius="4"
|
|
pu:TextBoxHelper.FocusedBorderBrush="#2a73c5"
|
|
pu:TextBoxHelper.Watermark="服务器名称"
|
|
Background="Transparent"
|
|
BorderThickness="1"
|
|
FontSize="14"
|
|
Text="{Binding LauncherConfig.GameInfo.GameExePath}" />-->
|
|
|
|
<Expander Background="Transparent" BorderThickness="0">
|
|
<Expander.Header>
|
|
<TextBlock Text="{x:Static prop:Resources.t_advanced}" />
|
|
</Expander.Header>
|
|
|
|
<StackPanel>
|
|
<TextBox
|
|
xmlns:Model="clr-namespace:Launcher.Model"
|
|
MinWidth="100"
|
|
Margin="0,5,5,5"
|
|
Padding="8"
|
|
pu:TextBoxHelper.CornerRadius="4"
|
|
pu:TextBoxHelper.FocusedBorderBrush="#2a73c5"
|
|
pu:TextBoxHelper.Watermark="{x:Static prop:Resources.tip_publickey}"
|
|
AcceptsReturn="True"
|
|
Background="Transparent"
|
|
BorderThickness="1"
|
|
FontSize="14"
|
|
Text="{Binding ElementName=root, Path=ServerItem.RSAPublicKey}" />
|
|
|
|
<TextBox
|
|
xmlns:Model="clr-namespace:Launcher.Model"
|
|
MinWidth="100"
|
|
Margin="0,5,5,5"
|
|
Padding="8"
|
|
pu:TextBoxHelper.CornerRadius="4"
|
|
pu:TextBoxHelper.FocusedBorderBrush="#2a73c5"
|
|
pu:TextBoxHelper.Watermark="{x:Static prop:Resources.tip_privatekey}"
|
|
AcceptsReturn="True"
|
|
Background="Transparent"
|
|
BorderThickness="1"
|
|
FontSize="14"
|
|
Text="{Binding ElementName=root, Path=ServerItem.RSAPrivateKey}" />
|
|
</StackPanel>
|
|
</Expander>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
|
|
<Button
|
|
Padding="18,12"
|
|
pu:ButtonHelper.ClickBackground="#88f8fafd"
|
|
pu:ButtonHelper.CornerRadius="8"
|
|
pu:ButtonHelper.HoverBackground="#88b8daf0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Click="Button_Click_1"
|
|
Content="{x:Static prop:Resources.tb_ok}"
|
|
FontFamily="{StaticResource remix}"
|
|
FontSize="14"
|
|
FontWeight="Bold"
|
|
Foreground="#558fd1" />
|
|
<Button
|
|
Margin="8,0,0,0"
|
|
Padding="18,12"
|
|
pu:ButtonHelper.ClickBackground="#44f8fafd"
|
|
pu:ButtonHelper.CornerRadius="8"
|
|
pu:ButtonHelper.HoverBackground="#44b8daf0"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Click="Button_Click"
|
|
Content="取消"
|
|
FontFamily="{StaticResource remix}"
|
|
FontSize="14"
|
|
Foreground="#558fd1"
|
|
Visibility="Collapsed" />
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|