|
|
@ -12,37 +12,39 @@ |
|
|
|
Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
|
mc:Ignorable="d"> |
|
|
|
mc:Ignorable="d"> |
|
|
|
|
|
|
|
|
|
|
|
<Grid Margin="16"> |
|
|
|
<Grid Margin="16"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Vertical"> |
|
|
|
<StackPanel Grid.Row="0" Orientation="Vertical"> |
|
|
|
<Button Content="Install" Command="{Binding InstallCommand}" Width="100" Height="50" HorizontalAlignment="Center"/> |
|
|
|
<Button Content="Install" Command="{Binding InstallCommand}" Width="100" Height="50" |
|
|
|
<TextBlock Text="{Binding InstalledText}" HorizontalAlignment="Center" Padding="8"/> |
|
|
|
HorizontalAlignment="Center" /> |
|
|
|
<ProgressBar Visibility="{Binding ProgressBarVisibility, FallbackValue=Visible}" Value="{Binding ProgressValue, FallbackValue=10}" |
|
|
|
<TextBlock Text="{Binding InstalledText}" HorizontalAlignment="Center" Padding="8" /> |
|
|
|
|
|
|
|
<ProgressBar Visibility="{Binding ProgressBarVisibility, FallbackValue=Visible}" |
|
|
|
|
|
|
|
Value="{Binding ProgressValue, FallbackValue=10}" |
|
|
|
IsIndeterminate="{Binding IsIndeterminate, FallbackValue=False}" |
|
|
|
IsIndeterminate="{Binding IsIndeterminate, FallbackValue=False}" |
|
|
|
Maximum="100" Width="500"/> |
|
|
|
Maximum="100" Width="500" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="16" HorizontalAlignment="Left" Height="400"> |
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="16" HorizontalAlignment="Left" Height="400"> |
|
|
|
<ListView ItemsSource="{Binding Packages}" |
|
|
|
<ListView ItemsSource="{Binding Packages}" |
|
|
|
SelectedItem="{Binding SelectedPackage, Mode=TwoWay}"> |
|
|
|
SelectedItem="{Binding SelectedPackage, Mode=TwoWay}"> |
|
|
|
|
|
|
|
|
|
|
|
<ListView.Style> |
|
|
|
<ListView.Style> |
|
|
|
<Style TargetType="ListView"> |
|
|
|
<Style TargetType="ListView"> |
|
|
|
<Setter Property="Background" Value="#191919"/> |
|
|
|
<Setter Property="Background" Value="#191919" /> |
|
|
|
</Style> |
|
|
|
</Style> |
|
|
|
</ListView.Style> |
|
|
|
</ListView.Style> |
|
|
|
|
|
|
|
|
|
|
|
<ListView.ItemTemplate> |
|
|
|
<ListView.ItemTemplate> |
|
|
|
<DataTemplate DataType="{x:Type models:BasePackage}"> |
|
|
|
<DataTemplate DataType="{x:Type models:BasePackage}"> |
|
|
|
<StackPanel VerticalAlignment="Top" Margin="8"> |
|
|
|
<StackPanel VerticalAlignment="Top" Margin="8"> |
|
|
|
<TextBlock Text="{Binding DisplayName}" Margin="0,5,0,5" /> |
|
|
|
<TextBlock Text="{Binding DisplayName}" Margin="0,5,0,5" /> |
|
|
|
<TextBlock Text="{Binding ByAuthor}" Margin="0,0,0,5" /> |
|
|
|
<TextBlock Text="{Binding ByAuthor}" Margin="0,0,0,5" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</ListView.ItemTemplate> |
|
|
|
</ListView.ItemTemplate> |
|
|
|
</ListView> |
|
|
|
</ListView> |
|
|
@ -51,18 +53,18 @@ |
|
|
|
<TextBlock Text="{Binding SelectedPackage.DisplayName, FallbackValue=Stable Diffusion Web UI}" |
|
|
|
<TextBlock Text="{Binding SelectedPackage.DisplayName, FallbackValue=Stable Diffusion Web UI}" |
|
|
|
FontSize="24" FontWeight="Bold" /> |
|
|
|
FontSize="24" FontWeight="Bold" /> |
|
|
|
<Grid Visibility="{Binding PackageInstalledVisibility}"> |
|
|
|
<Grid Visibility="{Binding PackageInstalledVisibility}"> |
|
|
|
<Ellipse Width="24" Height="24" Fill="Green" Margin="8,0,0,0"/> |
|
|
|
<Ellipse Width="24" Height="24" Fill="Green" Margin="8,0,0,0" /> |
|
|
|
<ui:SymbolIcon Symbol="Checkmark24" Foreground="White" Margin="8,0,0,0"/> |
|
|
|
<ui:SymbolIcon Symbol="Checkmark24" Foreground="White" Margin="8,0,0,0" /> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
<TextBlock Text="Installed" VerticalAlignment="Center" Margin="8,0,0,0" |
|
|
|
<TextBlock Text="Installed" VerticalAlignment="Center" Margin="8,0,0,0" |
|
|
|
Visibility="{Binding PackageInstalledVisibility}"/> |
|
|
|
Visibility="{Binding PackageInstalledVisibility}" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
<TextBlock Text="{Binding SelectedPackage.ByAuthor, FallbackValue=by Automatic111}" |
|
|
|
<TextBlock Text="{Binding SelectedPackage.ByAuthor, FallbackValue=by Automatic111}" |
|
|
|
FontSize="12" Margin="0,5, 0, 5" /> |
|
|
|
FontSize="12" Margin="0,5, 0, 5" /> |
|
|
|
<ui:Hyperlink NavigateUri="{Binding SelectedPackage.GithubUrl}"> |
|
|
|
<ui:Hyperlink NavigateUri="{Binding SelectedPackage.GithubUrl}"> |
|
|
|
<TextBlock> |
|
|
|
<TextBlock> |
|
|
|
<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" /> |
|
|
|
</TextBlock> |
|
|
|
</TextBlock> |
|
|
|
</ui:Hyperlink> |
|
|
|
</ui:Hyperlink> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|