上传文件至 PUBG2017PSLauncher
This commit is contained in:
parent
5cf123a8f2
commit
9a0ff1c3ca
1 changed files with 414 additions and 0 deletions
414
PUBG2017PSLauncher/App.xaml
Normal file
414
PUBG2017PSLauncher/App.xaml
Normal file
|
@ -0,0 +1,414 @@
|
|||
<Application x:Class="PUBG2017PSLauncher.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||
xmlns:local="clr-namespace:PUBG2017PSLauncher"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
<Style x:Key="menuButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="Foreground" Value="#6e7783"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="Height" Value="45"/>
|
||||
<Setter Property="FontSize" Value="13"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10">
|
||||
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="installButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="#F6C000"/>
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
<Setter Property="Width" Value="200"/>
|
||||
<Setter Property="Height" Value="60"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="Margin" Value="20"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="FontSize" Value="13"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="installButtonIcon" TargetType="Icon:PackIconMaterial">
|
||||
<Setter Property="Width" Value="30"/>
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Margin" Value="20 2 20 0"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="menuButtonIcon" TargetType="Icon:PackIconMaterial">
|
||||
<Setter Property="Width" Value="20"/>
|
||||
<Setter Property="Height" Value="20"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Margin" Value="20 2 20 0"/>
|
||||
</Style>
|
||||
|
||||
<SolidColorBrush x:Key="ProgressBar.Progress" Color="#F6C000"/>
|
||||
<SolidColorBrush x:Key="ProgressBar.Background" Color="Black"/>
|
||||
<SolidColorBrush x:Key="ProgressBar.Border" Color="#FFBCBCBC"/>
|
||||
<Style x:Key="ProgressBarStyle1" TargetType="{x:Type ProgressBar}">
|
||||
<Setter Property="Foreground" Value="{StaticResource ProgressBar.Progress}"/>
|
||||
<Setter Property="Background" Value="{StaticResource ProgressBar.Background}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource ProgressBar.Border}"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ProgressBar}">
|
||||
<Grid x:Name="TemplateRoot">
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Determinate"/>
|
||||
<VisualState x:Name="Indeterminate">
|
||||
<Storyboard RepeatBehavior="Forever">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.25"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0.25"/>
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
<PointAnimationUsingKeyFrames Storyboard.TargetName="Animation" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)">
|
||||
<EasingPointKeyFrame KeyTime="0" Value="-0.5,0.5"/>
|
||||
<EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5"/>
|
||||
<EasingPointKeyFrame KeyTime="0:0:2" Value="1.5,0.5"/>
|
||||
</PointAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
|
||||
<Rectangle x:Name="PART_Track"/>
|
||||
<Grid x:Name="PART_Indicator" ClipToBounds="true" HorizontalAlignment="Left">
|
||||
<Rectangle x:Name="Indicator" Fill="{TemplateBinding Foreground}"/>
|
||||
<Rectangle x:Name="Animation" Fill="{TemplateBinding Foreground}" RenderTransformOrigin="0.5,0.5">
|
||||
<Rectangle.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform/>
|
||||
<RotateTransform/>
|
||||
<TranslateTransform/>
|
||||
</TransformGroup>
|
||||
</Rectangle.RenderTransform>
|
||||
</Rectangle>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="Orientation" Value="Vertical">
|
||||
<Setter Property="LayoutTransform" TargetName="TemplateRoot">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="-90"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsIndeterminate" Value="true">
|
||||
<Setter Property="Visibility" TargetName="Indicator" Value="Collapsed"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="closeButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="#212121"/>
|
||||
<Setter Property="Foreground" Value="#6e7783"/>
|
||||
<Setter Property="Width" Value="40"/>
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="0 10 0 0">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#262626"/>
|
||||
<Setter Property="Foreground" Value="#dcdcdc"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="minimizeButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="#212121"/>
|
||||
<Setter Property="Foreground" Value="#6e7783"/>
|
||||
<Setter Property="Width" Value="40"/>
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="0">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#262626"/>
|
||||
<Setter Property="Foreground" Value="#dcdcdc"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="selectPathButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="#212121"/>
|
||||
<Setter Property="Foreground" Value="#6e7783"/>
|
||||
<Setter Property="Width" Value="60"/>
|
||||
<Setter Property="Height" Value="37"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#323232"/>
|
||||
<Setter Property="Foreground" Value="#dcdcdc"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="miscButton" TargetType="Button">
|
||||
<Setter Property="Background" Value="#303030"/>
|
||||
<Setter Property="Foreground" Value="#6e7783"/>
|
||||
<Setter Property="Width" Value="48"/>
|
||||
<Setter Property="Height" Value="48"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#404040"/>
|
||||
<Setter Property="Foreground" Value="#dcdcdc"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="windowBtnIcon" TargetType="Icon:PackIconMaterial">
|
||||
<Setter Property="Width" Value="8"/>
|
||||
<Setter Property="Height" Value="8"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
<SolidColorBrush x:Key="OptionMark.Static.Background" Color="#181818"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Static.Border" Color="#FF707070"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="#6e7783"/>
|
||||
<SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="#181818"/>
|
||||
<SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="#FF707070"/>
|
||||
<SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="#6e7783"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="#181818"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="#FF707070"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="#6e7783"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="#FFE6E6E6"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="#FFBCBCBC"/>
|
||||
<SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="#FF707070"/>
|
||||
|
||||
<Style x:Key="FocusVisualCheck">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="2"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="OptionMarkFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="14,0,0,0"
|
||||
SnapsToDevicePixels="true"
|
||||
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
||||
StrokeDashArray="1 2"
|
||||
StrokeThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="CheckBoxStyle"
|
||||
TargetType="{x:Type CheckBox}">
|
||||
<Setter Property="FocusVisualStyle"
|
||||
Value="{StaticResource FocusVisualCheck}" />
|
||||
<Setter Property="Grid.Row" Value="4"/>
|
||||
<Setter Property="Background"
|
||||
Value="{StaticResource OptionMark.Static.Background}" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{StaticResource OptionMark.Static.Border}" />
|
||||
<Setter Property="Foreground"
|
||||
Value="#6e7783" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="1" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type CheckBox}">
|
||||
<Grid x:Name="templateRoot"
|
||||
Background="Transparent"
|
||||
SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="checkBoxBorder"
|
||||
Margin="1"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<Grid x:Name="markGrid">
|
||||
<Path x:Name="optionMark"
|
||||
Margin="1"
|
||||
Data="F1 M 9.97498,1.22334L 4.6983,9.09834L 4.52164,9.09834L 0,5.19331L 1.27664,3.52165L 4.255,6.08833L 8.33331,1.52588e-005L 9.97498,1.22334 Z "
|
||||
Fill="{StaticResource OptionMark.Static.Glyph}"
|
||||
Opacity="0"
|
||||
Stretch="None" />
|
||||
<Rectangle x:Name="indeterminateMark"
|
||||
Margin="2"
|
||||
Fill="{StaticResource OptionMark.Static.Glyph}"
|
||||
Opacity="0" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter x:Name="contentPresenter"
|
||||
Grid.Column="1"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Focusable="False"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="HasContent"
|
||||
Value="true">
|
||||
<Setter Property="FocusVisualStyle"
|
||||
Value="{StaticResource OptionMarkFocusVisual}" />
|
||||
<Setter Property="Padding"
|
||||
Value="4,-1,0,0" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="true">
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="Background"
|
||||
Value="{StaticResource OptionMark.MouseOver.Background}" />
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="BorderBrush"
|
||||
Value="{StaticResource OptionMark.MouseOver.Border}" />
|
||||
<Setter TargetName="optionMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.MouseOver.Glyph}" />
|
||||
<Setter TargetName="indeterminateMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.MouseOver.Glyph}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled"
|
||||
Value="false">
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="Background"
|
||||
Value="{StaticResource OptionMark.Disabled.Background}" />
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="BorderBrush"
|
||||
Value="{StaticResource OptionMark.Disabled.Border}" />
|
||||
<Setter TargetName="optionMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.Disabled.Glyph}" />
|
||||
<Setter TargetName="indeterminateMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.Disabled.Glyph}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed"
|
||||
Value="true">
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="Background"
|
||||
Value="{StaticResource OptionMark.Pressed.Background}" />
|
||||
<Setter TargetName="checkBoxBorder"
|
||||
Property="BorderBrush"
|
||||
Value="{StaticResource OptionMark.Pressed.Border}" />
|
||||
<Setter TargetName="optionMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.Pressed.Glyph}" />
|
||||
<Setter TargetName="indeterminateMark"
|
||||
Property="Fill"
|
||||
Value="{StaticResource OptionMark.Pressed.Glyph}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="true">
|
||||
<Setter TargetName="optionMark"
|
||||
Property="Opacity"
|
||||
Value="1" />
|
||||
<Setter TargetName="indeterminateMark"
|
||||
Property="Opacity"
|
||||
Value="0" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="{x:Null}">
|
||||
<Setter TargetName="optionMark"
|
||||
Property="Opacity"
|
||||
Value="0" />
|
||||
<Setter TargetName="indeterminateMark"
|
||||
Property="Opacity"
|
||||
Value="1" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
Loading…
Add table
Add a link
Reference in a new issue