Resaved with XAML Styler

This commit is contained in:
Justin Swanson 2019-11-01 19:17:23 -05:00
parent 3b9cec7b5c
commit f77359ee7d
7 changed files with 498 additions and 352 deletions

View File

@ -1,11 +1,13 @@
<UserControl x:Class="Wabbajack.CompilerView"
<UserControl
x:Class="Wabbajack.CompilerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Wabbajack"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Viewbox Stretch="Uniform">
<Grid Margin="4,0,4,0">
<Grid.RowDefinitions>
@ -36,14 +38,17 @@
<TextBlock FontSize="16" Text="{Binding MOProfile}" />
</StackPanel>
<Grid Grid.Row="1" Grid.Column="0"
IsEnabled="{Binding UIReady}"
Margin="0,8,0,8">
<Grid
Grid.Row="1"
Grid.Column="0"
Margin="0,8,0,8"
IsEnabled="{Binding UIReady}">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image Grid.Row="0"
<Image
Grid.Row="0"
Source="{Binding Image}"
Stretch="Fill" />
<Grid Grid.Row="1">
@ -51,43 +56,65 @@
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label
Grid.Column="0"
Content="Splash Screen Path:" />
<local:FilePicker Grid.Column="1"
PathType="File"
<Label Grid.Column="0" Content="Splash Screen Path:" />
<local:FilePicker
Grid.Column="1"
Width="534"
HorizontalAlignment="Left"
DoExistsCheck="False"
TargetPath="{Binding ImagePath}"
Filter="Banner image|*.png"
IsEnabled="{Binding UIReady}" HorizontalAlignment="Left" Width="534" />
IsEnabled="{Binding UIReady}"
PathType="File"
TargetPath="{Binding ImagePath}" />
</Grid>
</Grid>
<ScrollViewer Grid.Row="1" Grid.Column="2" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"
<ScrollViewer
Grid.Row="1"
Grid.Column="2"
Background="Transparent"
HorizontalScrollBarVisibility="Disabled"
IsEnabled="{Binding UIReady}"
Background="Transparent">
<StackPanel Orientation="Vertical" Background="Transparent" >
VerticalScrollBarVisibility="Auto">
<StackPanel Background="Transparent" Orientation="Vertical">
<StackPanel.Resources>
<Thickness x:Key="TitleMargin" Left="5" Bottom="1" />
<Style TargetType="TextBox" x:Key="ValueStyle" BasedOn="{StaticResource MainTextBoxStyle}" >
<Thickness
x:Key="TitleMargin"
Bottom="1"
Left="5" />
<Style
x:Key="ValueStyle"
BasedOn="{StaticResource MainTextBoxStyle}"
TargetType="TextBox">
<Setter Property="MaxLength" Value="50" />
<Setter Property="AcceptsTab" Value="False" />
<Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="0,0,0,6" />
</Style>
</StackPanel.Resources>
<TextBlock Text="ModList Name" Margin="{StaticResource TitleMargin}" />
<TextBox Text="{Binding ModListName}" Style="{StaticResource ValueStyle}" />
<TextBlock Text="Author" Margin="{StaticResource TitleMargin}" />
<TextBox Text="{Binding AuthorName}" Style="{StaticResource ValueStyle}" />
<TextBlock Text="Description" Margin="{StaticResource TitleMargin}" />
<TextBox Text="{Binding Summary}" Style="{StaticResource ValueStyle}" Height="150" MaxLength="700" AcceptsReturn="True" TextWrapping="Wrap" AcceptsTab="False" />
<TextBlock Text="Website" Margin="{StaticResource TitleMargin}" />
<TextBox Text="{Binding NexusSiteURL}" Style="{StaticResource ValueStyle}" />
<TextBlock Text="Readme Path" Margin="{StaticResource TitleMargin}" ToolTip="Path to a readme file." />
<local:FilePicker TargetPath="{Binding ReadMeText}"
PathType="File"
<TextBlock Margin="{StaticResource TitleMargin}" Text="ModList Name" />
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding ModListName}" />
<TextBlock Margin="{StaticResource TitleMargin}" Text="Author" />
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding AuthorName}" />
<TextBlock Margin="{StaticResource TitleMargin}" Text="Description" />
<TextBox
Height="150"
AcceptsReturn="True"
AcceptsTab="False"
MaxLength="700"
Style="{StaticResource ValueStyle}"
Text="{Binding Summary}"
TextWrapping="Wrap" />
<TextBlock Margin="{StaticResource TitleMargin}" Text="Website" />
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding NexusSiteURL}" />
<TextBlock
Margin="{StaticResource TitleMargin}"
Text="Readme Path"
ToolTip="Path to a readme file." />
<local:FilePicker
DoExistsCheck="False"
PathType="File"
TargetPath="{Binding ReadMeText}"
ToolTip="Path to a readme file." />
</StackPanel>
</ScrollViewer>
@ -138,11 +165,11 @@
<local:FilePicker
Grid.Row="0"
Grid.Column="1"
PathType="Folder"
DoExistsCheck="False"
TargetPath="{Binding Location}"
IsEnabled="{Binding UIReady}"
PathType="Folder"
SetTargetPathCommand="{Binding ChangePathCommand}"
IsEnabled="{Binding UIReady}" />
TargetPath="{Binding Location}" />
<Label
Grid.Row="2"
Grid.Column="0"
@ -150,11 +177,11 @@
<local:FilePicker
Grid.Row="2"
Grid.Column="1"
PathType="Folder"
DoExistsCheck="False"
TargetPath="{Binding DownloadLocation}"
IsEnabled="{Binding UIReady}"
PathType="Folder"
SetTargetPathCommand="{Binding ChangeDownloadPathCommand}"
IsEnabled="{Binding UIReady}" />
TargetPath="{Binding DownloadLocation}" />
</Grid>
<!-- End Location -->

View File

@ -17,8 +17,8 @@
</Grid.ColumnDefinitions>
<TextBox
Grid.Column="0"
VerticalContentAlignment="Center"
Margin="0,0,-4,0"
VerticalContentAlignment="Center"
Background="{StaticResource DarkBackgroundBrush}"
Text="{Binding TargetPath, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding ShowTextBoxInput, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" />
@ -37,8 +37,8 @@
ToolTip="Set target path">
<icon:PackIconMaterial
Width="16"
Margin="4"
Height="12"
Margin="4"
Kind="DotsHorizontal" />
</Button>
</Grid>

View File

@ -3,10 +3,10 @@
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:Wabbajack"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:local="clr-namespace:Wabbajack"
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="500"
d:DesignWidth="800"
mc:Ignorable="d">
@ -22,18 +22,20 @@
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation To="{StaticResource TextBackgroundHoverFill}"
Duration="0:0:0.06"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" />
<ColorAnimation
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
To="{StaticResource TextBackgroundHoverFill}"
Duration="0:0:0.06" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation To="{StaticResource TextBackgroundFill}"
Duration="0:0:0.06"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" />
<ColorAnimation
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
To="{StaticResource TextBackgroundFill}"
Duration="0:0:0.06" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.ExitActions>
@ -43,7 +45,10 @@
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="SlideshowButton" BasedOn="{StaticResource CircleButtonStyle}" TargetType="ButtonBase" >
<Style
x:Key="SlideshowButton"
BasedOn="{StaticResource CircleButtonStyle}"
TargetType="ButtonBase">
<Setter Property="Width" Value="40" />
<Setter Property="Height" Value="40" />
<Setter Property="Margin" Value="4" />
@ -57,7 +62,10 @@
<RowDefinition Height="*" MinHeight="150" />
</Grid.RowDefinitions>
<!-- Slideshow -->
<Grid Grid.Row="2" Margin="0,0,0,5" x:Name="Slideshow" >
<Grid
x:Name="Slideshow"
Grid.Row="2"
Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="3*" />
@ -68,7 +76,10 @@
Fill="{StaticResource WindowBackgroundBrush}" />
<Viewbox
Grid.Column="0"
Grid.ColumnSpan="2" Stretch="UniformToFill" HorizontalAlignment="Center" VerticalAlignment="Center" >
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Stretch="UniformToFill">
<Image Source="{Binding Image}" />
</Viewbox>
<Image
@ -85,7 +96,13 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Border Grid.Row="1" Grid.RowSpan="2" Grid.Column="0" Margin="-100,0,0,-100" CornerRadius="100" Style="{StaticResource BackgroundBlurStyle}" >
<Border
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="0"
Margin="-100,0,0,-100"
CornerRadius="100"
Style="{StaticResource BackgroundBlurStyle}">
<Border.Effect>
<BlurEffect Radius="65" />
</Border.Effect>
@ -93,12 +110,12 @@
<TextBlock
Grid.Row="1"
Grid.Column="0"
VerticalAlignment="Bottom"
Text="{Binding TitleText}"
FontSize="65"
Margin="20,25,20,0"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans"
FontSize="65"
FontWeight="Bold"
Text="{Binding TitleText}"
TextWrapping="WrapWithOverflow">
<TextBlock.Effect>
<DropShadowEffect />
@ -107,9 +124,9 @@
<TextBlock
Grid.Row="2"
Grid.Column="0"
FontSize="30"
Margin="55,0,20,20"
FontFamily="Lucida Sans"
FontSize="30"
FontWeight="Bold"
Text="{Binding AuthorText}"
TextWrapping="Wrap">
@ -125,9 +142,10 @@
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Grid.Column="0"
HorizontalAlignment="Right"
Margin="0,20,25,0" >
<Grid
Grid.Column="0"
Margin="0,20,25,0"
HorizontalAlignment="Right">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
@ -135,7 +153,10 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.Effect>
<DropShadowEffect Color="Black" Opacity="1" BlurRadius="25" />
<DropShadowEffect
BlurRadius="25"
Opacity="1"
Color="Black" />
</Grid.Effect>
<Grid.Style>
<Style TargetType="Grid">
@ -150,8 +171,8 @@
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
To="1"
Storyboard.TargetProperty="Opacity"
To="1"
Duration="0:0:0.12" />
</Storyboard>
</BeginStoryboard>
@ -170,21 +191,26 @@
</Style.Triggers>
</Style>
</Grid.Style>
<Button Grid.Column="3"
Style="{StaticResource CircleButtonStyle}"
Background="{StaticResource BackgroundBrush}"
Height="60"
<Button
Grid.Column="3"
Width="60"
Command="{Binding Slideshow.SlideShowNextItemCommand}"
ToolTip="Skip to the next mod"
Margin="6">
<icon:PackIconFontAwesome Kind="ChevronRightSolid" Height="28" Width="28" />
</Button>
<ToggleButton Grid.Column="2"
IsChecked="{Binding Slideshow.Enable}"
Height="60"
Margin="6"
Background="{StaticResource BackgroundBrush}"
Command="{Binding Slideshow.SlideShowNextItemCommand}"
Style="{StaticResource CircleButtonStyle}"
ToolTip="Skip to the next mod">
<icon:PackIconFontAwesome
Width="28"
Height="28"
Kind="ChevronRightSolid" />
</Button>
<ToggleButton
x:Name="PlayPauseButton"
Margin="6">
Grid.Column="2"
Margin="6"
Background="{StaticResource BackgroundBrush}"
IsChecked="{Binding Slideshow.Enable}">
<ToggleButton.Style>
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
<Setter Property="ToolTip" Value="Play slideshow" />
@ -208,18 +234,23 @@
</icon:PackIconMaterial.Style>
</icon:PackIconMaterial>
</ToggleButton>
<Button Grid.Column="1"
Style="{StaticResource SlideshowButton}"
ToolTip="Open Nexus Website"
Background="{StaticResource BackgroundBrush}"
<Button
Grid.Column="1"
Margin="6"
Command="{Binding Slideshow.VisitNexusSiteCommand}" >
<icon:PackIconMaterial Kind="Web" Height="28" Width="28" />
Background="{StaticResource BackgroundBrush}"
Command="{Binding Slideshow.VisitNexusSiteCommand}"
Style="{StaticResource SlideshowButton}"
ToolTip="Open Nexus Website">
<icon:PackIconMaterial
Width="28"
Height="28"
Kind="Web" />
</Button>
<ToggleButton Grid.Column="0"
<ToggleButton
Grid.Column="0"
Background="{StaticResource BackgroundBrush}"
IsChecked="{Binding Slideshow.ShowNSFW}"
ToolTip="Show NSFW mods"
Background="{StaticResource BackgroundBrush}">
ToolTip="Show NSFW mods">
<ToggleButton.Style>
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
<Setter Property="ToolTip" Value="Show NSFW mods" />
@ -231,37 +262,43 @@
</Style>
</ToggleButton.Style>
<Grid>
<TextBlock Text="NSFW" Margin="4"
<TextBlock
Margin="4"
HorizontalAlignment="Center"
FontWeight="Bold"
FontSize="9"
VerticalAlignment="Center"
FontFamily="Lucida Sans"
VerticalAlignment="Center" />
FontSize="9"
FontWeight="Bold"
Text="NSFW" />
<icon:PackIconOcticons
Width="40"
Height="40"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="#88FFFFFF"
Height="40"
Width="40"
Kind="CircleSlash"
Visibility="{Binding Slideshow.ShowNSFW, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" />
</Grid>
</ToggleButton>
</Grid>
<Border Grid.Row="3" Margin="0,0,-50,-50" CornerRadius="50" Style="{StaticResource BackgroundBlurStyle}">
<Border
Grid.Row="3"
Margin="0,0,-50,-50"
CornerRadius="50"
Style="{StaticResource BackgroundBlurStyle}">
<Border.Effect>
<BlurEffect Radius="65" />
</Border.Effect>
</Border>
<TextBlock
Grid.Row="3"
VerticalAlignment="Bottom"
FontSize="16"
HorizontalAlignment="Right"
TextAlignment="Right"
Margin="20,25,25,25"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans"
FontSize="16"
Text="{Binding Description}"
TextAlignment="Right"
TextWrapping="Wrap">
<TextBlock.Effect>
<DropShadowEffect />
@ -271,73 +308,83 @@
</Grid>
<!-- Top progress bar -->
<!-- Comes after slideshow control, so that any effects/overlap goes on top -->
<Rectangle VerticalAlignment="Top" Height="25" Grid.Row="2" IsHitTestVisible="False" >
<Rectangle
Grid.Row="2"
Height="25"
VerticalAlignment="Top"
IsHitTestVisible="False">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#AA000000" Offset="0"/>
<GradientStop Color="#00000000" Offset="1"/>
<GradientStop Offset="0" Color="#AA000000" />
<GradientStop Offset="1" Color="#00000000" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Rectangle Grid.Row="1" Fill="{StaticResource BackgroundBrush}" />
<mahapps:MetroProgressBar x:Name="BottomProgressBarDarkGlow"
<mahapps:MetroProgressBar
x:Name="BottomProgressBarDarkGlow"
Grid.Row="1"
Grid.RowSpan="2"
Height="16"
Margin="-4"
VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Foreground="{StaticResource PrimaryVariantBrush}"
Background="Transparent"
BorderBrush="Transparent"
Height="16"
Margin="-4" >
Foreground="{StaticResource PrimaryVariantBrush}"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Effect>
<BlurEffect Radius="25" />
</mahapps:MetroProgressBar.Effect>
</mahapps:MetroProgressBar>
<mahapps:MetroProgressBar x:Name="BottomProgressBarBrightGlow"
<mahapps:MetroProgressBar
x:Name="BottomProgressBarBrightGlow"
Grid.Row="1"
Grid.RowSpan="2"
Height="6"
Margin="-4"
VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Foreground="{StaticResource PrimaryBrush}"
Background="Transparent"
BorderBrush="Transparent"
Height="6"
Margin="-4" >
Foreground="{StaticResource PrimaryBrush}"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Effect>
<BlurEffect Radius="20" />
</mahapps:MetroProgressBar.Effect>
</mahapps:MetroProgressBar>
<Grid Grid.Row="0" x:Name="TopBarGrid">
<Grid x:Name="TopBarGrid" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<mahapps:MetroProgressBar Grid.Column="0"
<mahapps:MetroProgressBar
Grid.Column="0"
Grid.ColumnSpan="4"
Background="{StaticResource WindowBackgroundBrush}"
BorderThickness="0"
Foreground="Transparent"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}" />
<mahapps:MetroProgressBar Grid.Column="0" Grid.ColumnSpan="4"
<mahapps:MetroProgressBar
Grid.Column="0"
Grid.ColumnSpan="4"
Background="Transparent"
BorderThickness="0"
Foreground="{StaticResource PrimaryVariantBrush}"
Opacity="{Binding ProgressPercent, Mode=OneWay}"
Maximum="1"
Opacity="{Binding ProgressPercent, Mode=OneWay}"
Value="{Binding ProgressPercent, Mode=OneWay}" />
<TextBlock Grid.Column="0"
VerticalAlignment="Bottom"
Margin="10,0,0,8"
<TextBlock
Grid.Column="0"
Width="90"
Margin="10,0,0,8"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans"
FontWeight="Black"
TextAlignment="Right"
FontFamily="Lucida Sans" >
TextAlignment="Right">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="Configuring" />
@ -367,12 +414,14 @@
</Style>
</TextBlock.Style>
</TextBlock>
<TextBlock Grid.Column="1" Text="{Binding ModListName}"
VerticalAlignment="Center"
<TextBlock
Grid.Column="1"
Margin="15,0,0,0"
VerticalAlignment="Center"
FontFamily="Lucida Sans"
FontSize="25"
FontWeight="Black"
FontFamily="Lucida Sans" />
Text="{Binding ModListName}" />
<!-- Readd when Pause/Stop implementations added -->
<!--<Button Grid.Column="2"
ToolTip="Pause Installation"
@ -393,78 +442,89 @@
Kind="TimesCircleSolid" />
</Button>-->
</Grid>
<mahapps:MetroProgressBar x:Name="BottomProgressBar"
<mahapps:MetroProgressBar
x:Name="BottomProgressBar"
Grid.Row="1"
Grid.RowSpan="2"
Height="5"
VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Background="Transparent"
BorderBrush="Transparent"
Foreground="{StaticResource PrimaryBrush}"
Background="Transparent"
BorderBrush="Transparent"
Height="5" />
<mahapps:MetroProgressBar x:Name="BottomProgressBarHighlight"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}" />
<mahapps:MetroProgressBar
x:Name="BottomProgressBarHighlight"
Grid.Row="1"
Grid.RowSpan="2"
Height="5"
VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Background="Transparent"
BorderBrush="Transparent"
Height="5" >
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#CCFFFFFF" Offset="0"/>
<GradientStop Color="#00FFFFFF" Offset="0.3"/>
<GradientStop Color="#00FFFFFF" Offset="0.7"/>
<GradientStop Color="#CCFFFFFF" Offset="1"/>
<GradientStop Offset="0" Color="#CCFFFFFF" />
<GradientStop Offset="0.3" Color="#00FFFFFF" />
<GradientStop Offset="0.7" Color="#00FFFFFF" />
<GradientStop Offset="1" Color="#CCFFFFFF" />
</LinearGradientBrush>
</mahapps:MetroProgressBar.Foreground>
</mahapps:MetroProgressBar>
<!-- Bottom Area -->
<Grid Grid.Row="3"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" >
<Grid Grid.Row="3" Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="4" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0"
Margin="10">
<Grid Grid.Column="0" Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="0"
<Button
Grid.Row="0"
Margin="30,5"
Command="{Binding OpenReadmeCommand}"
Content="Readme"
ToolTip="Open the readme for the modlist"
FontSize="20"
Command="{Binding OpenReadmeCommand}" />
<Button Grid.Row="1"
ToolTip="Open the readme for the modlist" />
<Button
Grid.Row="1"
Margin="30,5"
Command="{Binding VisitWebsiteCommand}"
Content="Website"
ToolTip="Open the webpage for the modlist"
FontSize="20"
Command="{Binding VisitWebsiteCommand}" />
<Button Grid.Row="2"
ToolTip="Open the webpage for the modlist" />
<Button
Grid.Row="2"
Margin="30,5"
Command="{Binding ShowReportCommand}"
Content="Manifest"
ToolTip="Open an explicit listing of all actions this modlist will take"
FontSize="20"
Command="{Binding ShowReportCommand}" />
ToolTip="Open an explicit listing of all actions this modlist will take" />
</Grid>
<Grid Grid.Column="2"
<Grid
x:Name="InstallationConfigurationView"
Grid.Column="2"
Background="{StaticResource WindowBackgroundBrush}">
<Border x:Name="ConfigurationBackgroundHaze" Background="{StaticResource PrimaryVariantBrush}" Opacity="0.10" Height="120" CornerRadius="50" >
<Border
x:Name="ConfigurationBackgroundHaze"
Height="120"
Background="{StaticResource PrimaryVariantBrush}"
CornerRadius="50"
Opacity="0.10">
<Border.Effect>
<BlurEffect Radius="45" />
</Border.Effect>
</Border>
<ScrollViewer VerticalScrollBarVisibility="Auto" Background="Transparent"
<ScrollViewer
Margin="5"
Background="Transparent"
VerticalScrollBarVisibility="Auto"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
<Grid Margin="8">
<Grid.ColumnDefinitions>
@ -480,15 +540,18 @@
<RowDefinition Height="40" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="1" Grid.RowSpan="2"
Grid.Column="0" Grid.ColumnSpan="5"
<Border
x:Name="BeginButtonPurpleGlow"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="0"
Grid.ColumnSpan="5"
Width="76"
Height="76"
CornerRadius="43"
Margin="0,0,14,0"
HorizontalAlignment="Right"
Background="{StaticResource PrimaryVariantBrush}" >
Background="{StaticResource PrimaryVariantBrush}"
CornerRadius="43">
<Border.Effect>
<BlurEffect Radius="10" />
</Border.Effect>
@ -503,49 +566,59 @@
</Style>
</Border.Style>
</Border>
<TextBlock Grid.Column="0" Grid.Row="1"
VerticalAlignment="Center"
FontSize="14"
<TextBlock
Grid.Row="1"
Grid.Column="0"
HorizontalAlignment="Right"
TextAlignment="Center"
Text="Installation Location" />
<local:FilePicker Grid.Column="2" Grid.Row="1"
Height="30"
FontSize="14"
VerticalAlignment="Center"
PathType="Folder"
FontSize="14"
Text="Installation Location"
TextAlignment="Center" />
<local:FilePicker
Grid.Row="1"
Grid.Column="2"
Height="30"
VerticalAlignment="Center"
DoExistsCheck="False"
FontSize="14"
PathType="Folder"
PromptTitle="Select Installation directory"
TargetPath="{Binding Location}" />
<TextBlock Grid.Column="0" Grid.Row="2"
<TextBlock
Grid.Row="2"
Grid.Column="0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
FontSize="14"
HorizontalAlignment="Right"
TextAlignment="Center"
Text="Download Location" />
<local:FilePicker Grid.Column="2" Grid.Row="2"
Text="Download Location"
TextAlignment="Center" />
<local:FilePicker
Grid.Row="2"
Grid.Column="2"
Height="30"
FontSize="14"
PathType="Folder"
VerticalAlignment="Center"
DoExistsCheck="False"
FontSize="14"
PathType="Folder"
PromptTitle="Select a location for MO2 downloads"
TargetPath="{Binding DownloadLocation}" />
<Button Grid.Row="1" Grid.RowSpan="2"
Grid.Column="4"
<Button
x:Name="BeginButton"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="4"
Width="55"
Height="55"
Margin="0,0,25,0"
BorderBrush="{StaticResource SecondaryBrush}"
HorizontalAlignment="Right"
Background="#222222"
Style="{StaticResource CircleButtonStyle}"
Command="{Binding BeginCommand}">
BorderBrush="{StaticResource SecondaryBrush}"
Command="{Binding BeginCommand}"
Style="{StaticResource CircleButtonStyle}">
<icon:PackIconMaterial
Margin="5,0,0,0"
Height="25"
Width="25"
Height="25"
Margin="5,0,0,0"
Kind="Play">
<icon:PackIconMaterial.Style>
<Style TargetType="icon:PackIconMaterial">
@ -559,20 +632,24 @@
</icon:PackIconMaterial.Style>
</icon:PackIconMaterial>
<Button.Effect>
<DropShadowEffect Color="{StaticResource Secondary}" ShadowDepth="0" BlurRadius="15" />
<DropShadowEffect
BlurRadius="15"
ShadowDepth="0"
Color="{StaticResource Secondary}" />
</Button.Effect>
</Button>
</Grid>
</ScrollViewer>
</Grid>
<Rectangle Grid.Column="0" Grid.ColumnSpan="3"
<Rectangle
Grid.Column="0"
Grid.ColumnSpan="3"
Height="1"
Margin="25,0"
VerticalAlignment="Top"
Fill="{StaticResource DarkBackgroundBrush}" />
</Grid>
<Grid Grid.Row="3"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}" >
<Grid Grid.Row="3" Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="4" />
@ -582,7 +659,8 @@
Grid.Column="0"
local:AutoScrollBehavior.ScrollOnNewItem="True"
ItemsSource="{Binding MWVM.Log}" />
<ListBox x:Name="CpuListBox"
<ListBox
x:Name="CpuListBox"
Grid.Column="2"
ItemsSource="{Binding MWVM.StatusList}">
<ListBox.ItemTemplate>

View File

@ -1,15 +1,19 @@
<Window x:Class="Wabbajack.ModeSelectionWindow"
<Window
x:Class="Wabbajack.ModeSelectionWindow"
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"
Style="{StaticResource {x:Type Window}}"
Icon="../Resources/Icons/wabbajack.ico"
WindowStyle="ToolWindow"
xmlns:local="clr-namespace:Wabbajack"
mc:Ignorable="d"
Title="Wabbajack" Height="500" Width="800" ResizeMode="NoResize"
Closing="Close_Window">
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Wabbajack"
Width="800"
Height="500"
Closing="Close_Window"
Icon="../Resources/Icons/wabbajack.ico"
ResizeMode="NoResize"
Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow"
mc:Ignorable="d">
<Grid Margin="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
@ -22,14 +26,45 @@
<RowDefinition Height="70" />
<RowDefinition Height="70" />
</Grid.RowDefinitions>
<Image MouseLeftButtonDown="GitHub_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" Name="GitHub"/>
<Image MouseLeftButtonDown="Patreon_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="1" Name="Patreon"/>
<Image MouseLeftButtonDown="Discord_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="2" Name="Discord"/>
<Image Grid.Row="1" Grid.ColumnSpan="3" Name="Banner" Stretch="Uniform" Margin="2,0,2,0"/>
<Button Name="InstallModlist" Grid.ColumnSpan="3" Grid.Row="2" Margin="2" Click="InstallModlist_Click">
<Image
Name="GitHub"
Grid.Row="0"
Grid.Column="0"
Margin="5,0,0,0"
HorizontalAlignment="Right"
MouseLeftButtonDown="GitHub_MouseLeftButtonDown" />
<Image
Name="Patreon"
Grid.Row="0"
Grid.Column="1"
Margin="5,0,0,0"
MouseLeftButtonDown="Patreon_MouseLeftButtonDown" />
<Image
Name="Discord"
Grid.Row="0"
Grid.Column="2"
Margin="5,0,0,0"
MouseLeftButtonDown="Discord_MouseLeftButtonDown" />
<Image
Name="Banner"
Grid.Row="1"
Grid.ColumnSpan="3"
Margin="2,0,2,0"
Stretch="Uniform" />
<Button
Name="InstallModlist"
Grid.Row="2"
Grid.ColumnSpan="3"
Margin="2"
Click="InstallModlist_Click">
<TextBlock FontSize="40">Install a ModList</TextBlock>
</Button>
<Button Name="CreateModlist" Grid.ColumnSpan="3" Grid.Row="3" Margin="2" Click="CreateModlist_Click">
<Button
Name="CreateModlist"
Grid.Row="3"
Grid.ColumnSpan="3"
Margin="2"
Click="CreateModlist_Click">
<TextBlock FontSize="40">Create a ModList</TextBlock>
</Button>
</Grid>

View File

@ -1,15 +1,21 @@
<Window x:Class="Wabbajack.TextViewer"
<Window
x:Class="Wabbajack.TextViewer"
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:Wabbajack"
Style="{StaticResource {x:Type Window}}"
mc:Ignorable="d"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="TextViewer"
Width="800"
Height="450"
Icon="../Resources/Icons/wabbajack.ico"
Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow"
Title="TextViewer" Height="450" Width="800">
mc:Ignorable="d">
<Grid>
<TextBlock FontSize="20" Name="TextBlock" TextWrapping="Wrap"/>
<TextBlock
Name="TextBlock"
FontSize="20"
TextWrapping="Wrap" />
</Grid>
</Window>

View File

@ -190,8 +190,8 @@
<SubType>Designer</SubType>
</Page>
<Page Include="Views\TextViewer.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>