@ -1,4 +1,4 @@
<ui:FluentWindow
<ui:FluentWindow
Background="{DynamicResource ApplicationBackgroundBrush}"
Background="{DynamicResource ApplicationBackgroundBrush}"
ExtendsContentIntoTitleBar="True"
ExtendsContentIntoTitleBar="True"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
@ -8,6 +8,7 @@
Title="Stability Matrix - Installer"
Title="Stability Matrix - Installer"
Width="1100"
Width="1100"
WindowBackdropType="Mica"
WindowBackdropType="Mica"
WindowStartupLocation="CenterOwner"
d:DataContext="{d:DesignInstance Type=viewModels:InstallerViewModel,
d:DataContext="{d:DesignInstance Type=viewModels:InstallerViewModel,
IsDesignTimeCreatable=True}"
IsDesignTimeCreatable=True}"
d:DesignHeight="600"
d:DesignHeight="600"
@ -34,19 +35,20 @@
</converters:ValueConverterGroup>
</converters:ValueConverterGroup>
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
<BooleanToVisibilityConverter x:Key="BoolToVisConverter"/>
<xaml:Markdown
<xaml:Markdown x:Key="Markdown"
AssetPathRoot="{x:Static system:Environment.CurrentDirectory}"
DocumentStyle="{StaticResource DocumentStyle}"
DocumentStyle="{StaticResource DocumentStyle}"
Heading1Style="{StaticResource H1Style}"
Heading1Style="{StaticResource H1Style}"
Heading2Style="{StaticResource H2Style}"
Heading2Style="{StaticResource H2Style}"
Heading3Style="{StaticResource H3Style}"
Heading3Style="{StaticResource H3Style}"
Heading4Style="{StaticResource H4Style}"
Heading4Style="{StaticResource H4Style}"
ImageStyle="{StaticResource ImageStyle}"
LinkStyle="{StaticResource LinkStyle}"
LinkStyle="{StaticResource LinkStyle}"
ImageStyle="{StaticResource ImageStyle}"
SeparatorStyle="{StaticResource SeparatorStyle}"
SeparatorStyle="{StaticResource SeparatorStyle}"
x:Key="Markdown" />
AssetPathRoot="{x:Static system:Environment.CurrentDirectory}"/>
<xaml:TextToFlowDocumentConverter Markdown="{StaticResource Markdown}" x:Key="TextToFlowDocumentConverter" />
<xaml:TextToFlowDocumentConverter x:Key="TextToFlowDocumentConverter"
Markdown="{StaticResource Markdown}"/>
</ui:FluentWindow.Resources>
</ui:FluentWindow.Resources>
<Grid>
<Grid>
@ -117,19 +119,13 @@
</ListView.ItemTemplate>
</ListView.ItemTemplate>
</ListView>
</ListView>
<StackPanel
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="16,16,0,16">
Grid.Column="1"
<TextBlock Text="{Binding SelectedPackage.DisplayName, FallbackValue=Stable Diffusion Web UI}"
Margin="16,16,0,16"
FontSize="24" FontWeight="Bold" />
Orientation="Vertical">
<TextBlock Text="{Binding SelectedPackage.ByAuthor, FallbackValue=by Automatic111}"
<TextBlock
FontSize="12"/>
FontSize="24"
<ui:Hyperlink NavigateUri="{Binding SelectedPackage.GithubUrl}"
FontWeight="Bold"
Margin="0,8,0,8">
Text="{Binding SelectedPackage.DisplayName, FallbackValue=Stable Diffusion Web UI}" />
<TextBlock
FontSize="12"
Margin="0,5,0,5"
Text="{Binding SelectedPackage.ByAuthor, FallbackValue=by Automatic111}" />
<ui:Hyperlink NavigateUri="{Binding SelectedPackage.GithubUrl}">
<TextBlock TextWrapping="Wrap">
<TextBlock TextWrapping="Wrap">
<Run Text="GitHub Page:" />
<Run Text="GitHub Page:" />
<Run Text="{Binding SelectedPackage.GithubUrl, Mode=OneWay}" TextDecorations="Underline" />
<Run Text="{Binding SelectedPackage.GithubUrl, Mode=OneWay}" TextDecorations="Underline" />
@ -191,19 +187,35 @@
</StackPanel>
</StackPanel>
<Label Content="Install Location" Margin="0,16,0,0"/>
<Label Content="Install Location" Margin="0,16,0,0"/>
<ui:TextBox Margin="0,0,0,8" Text="{Binding InstallPath}" />
<ui:TextBox Text="{Binding InstallPath, UpdateSourceTrigger=PropertyChanged}"
Margin="0,0,0,8"/>
<Label Content="Display Name" Margin="0,16,0,0"/>
<Label Content="Display Name" Margin="0,16,0,0"/>
<ui:TextBox Margin="0,0,0,8" Text="{Binding InstallName}" />
<StackPanel Orientation="Horizontal"
Visibility="{Binding ShowDuplicateWarning,
Converter={StaticResource BoolToVisConverter}}">
<ui:SymbolIcon Symbol="ErrorCircle24"
Margin="8"
Foreground="{ui:ThemeResource SystemFillColorCriticalBrush}"/>
<TextBlock TextAlignment="Left"
Margin="0,8,8,8"
Foreground="{ui:ThemeResource SystemFillColorCriticalBrush}"
TextWrapping="Wrap">
<Run Text="An installation with this name already exists."/>
<LineBreak/><Run Text="Please choose a different name or select a different Install Location."/>
</TextBlock>
</StackPanel>
<ui:TextBox Text="{Binding InstallName, UpdateSourceTrigger=PropertyChanged}"
Margin="0,0,0,8"/>
<ui:Button
<ui:Button Content="{Binding InstallButtonText, FallbackValue=Install}"
Appearance="Success"
Command="{Binding InstallCommand}"
Command="{Binding InstallCommand}"
Content="{Binding InstallButtonText, FallbackValue=Install}"
IsEnabled="{Binding ShowDuplicateWarning,
Height="50"
Converter={StaticResource BoolNegationConverter}}"
Width="100" Height="50"
Background="Green"
Margin="0,16,0,0"
Margin="0,16,0,0"
VerticalAlignment="Top"
VerticalAlignment="Top" />
Width="100" />
</StackPanel>
</StackPanel>
<FlowDocumentScrollViewer
<FlowDocumentScrollViewer
Document="{Binding ReleaseNotes, Converter={StaticResource TextToFlowDocumentConverter}}"
Document="{Binding ReleaseNotes, Converter={StaticResource TextToFlowDocumentConverter}}"