@ -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"
@ -32,21 +33,22 @@
<converters:BoolNegationConverter />
<converters:BoolNegationConverter />
<BooleanToVisibilityConverter />
<BooleanToVisibilityConverter />
</converters:ValueConverterGroup>
</converters:ValueConverterGroup>
<converters:BoolNegationConverter x:Key="BoolNegationConverter" />
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
<BooleanToVisibilityConverter x:Key="BoolToVisConverter"/>
<xaml:Markdown
AssetPathRoot="{x:Static system:Environment.CurrentDirectory}"
<xaml:Markdown x:Key="Markdown"
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" />
@ -190,20 +186,36 @@
</StackPanel>
</StackPanel>
</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" />
<ui:TextBox Margin="0,0,0,8" Text="{Binding InstallName}" />
<Label Content="Display Name" Margin="0,16,0,0"/>
<StackPanel Orientation="Horizontal"
<ui:Button
Visibility="{Binding ShowDuplicateWarning,
Appearance="Success"
Converter={StaticResource BoolToVisConverter}}">
Command="{Binding InstallCommand}"
<ui:SymbolIcon Symbol="ErrorCircle24"
Content="{Binding InstallButtonText, FallbackValue=Install}"
Margin="8"
Height="50"
Foreground="{ui:ThemeResource SystemFillColorCriticalBrush}"/>
Margin="0,16,0,0"
<TextBlock TextAlignment="Left"
VerticalAlignment="Top"
Margin="0,8,8,8"
Width="100" />
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 Content="{Binding InstallButtonText, FallbackValue=Install}"
Command="{Binding InstallCommand}"
IsEnabled="{Binding ShowDuplicateWarning,
Converter={StaticResource BoolNegationConverter}}"
Width="100" Height="50"
Background="Green"
Margin="0,16,0,0"
VerticalAlignment="Top" />
</StackPanel>
</StackPanel>
<FlowDocumentScrollViewer
<FlowDocumentScrollViewer
Document="{Binding ReleaseNotes, Converter={StaticResource TextToFlowDocumentConverter}}"
Document="{Binding ReleaseNotes, Converter={StaticResource TextToFlowDocumentConverter}}"