Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
6.2 KiB

<controls:UserControlBase xmlns="https://github.com/avaloniaui"
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:vm="clr-namespace:StabilityMatrix.Avalonia.ViewModels"
xmlns:avaloniaEdit="clr-namespace:AvaloniaEdit;assembly=AvaloniaEdit"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData"
1 year ago
xmlns:models="clr-namespace:StabilityMatrix.Core.Models;assembly=StabilityMatrix.Core"
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls"
d:DataContext="{x:Static mocks:DesignData.LaunchPageViewModel}"
x:CompileBindings="True"
x:DataType="vm:LaunchPageViewModel"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="StabilityMatrix.Avalonia.Views.LaunchPageView">
<Grid RowDefinitions="Auto,*,Auto">
<Grid ColumnDefinitions="Auto,*">
<Grid ColumnDefinitions="0.8*,0.2*">
<!--<ui:Flyout
Background="{DynamicResource SystemAccentColorPrimaryBrush}"
FontSize="18"
Grid.Column="0"
Grid.Row="0"
IsOpen="{Binding IsLaunchTeachingTipsOpen, Mode=TwoWay}"
Margin="24,8,0,0"
Placement="Bottom">
<StackPanel Orientation="Horizontal">
<Grid HorizontalAlignment="Left">
<ui:SymbolIcon Symbol="ArrowCurveUpLeft20" />
</Grid>
<TextBlock
HorizontalAlignment="Left"
Text="Click Launch to get started!"
TextWrapping="WrapWithOverflow"
Width="280" />
</StackPanel>
</ui:Flyout>-->
<!-- Command="{Binding LaunchCommand}" -->
<!--Visibility="{Binding LaunchButtonVisibility, FallbackValue=Visible}"-->
<Button
Command="{Binding LaunchCommand}"
Content="Launch"
Grid.Column="0"
Grid.Row="0"
1 year ago
Classes="success"
HorizontalAlignment="Left"
Margin="24,8,0,0"
VerticalAlignment="Stretch"
Width="72"/>
<!--Command="{Binding StopCommand}"-->
<!--Visibility="{Binding StopButtonVisibility, FallbackValue=Hidden}"-->
<Button
IsVisible="False"
Content="Stop"
Grid.Column="0"
Grid.Row="0"
1 year ago
Classes="danger"
HorizontalAlignment="Left"
Margin="24,8,0,0"
VerticalAlignment="Stretch"
Width="72"/>
<!--Command="{Binding ConfigCommand}"-->
<Button
FontSize="16"
Grid.Column="1"
Grid.Row="0"
HorizontalAlignment="Left"
Margin="8,8,0,0"
VerticalAlignment="Stretch"
Width="48">
<ui:SymbolIcon Symbol="Settings" FontSize="16"/>
<!--<ui:Button.Icon>
<ui:SymbolIcon Symbol="Settings32" />
</ui:Button.Icon>-->
</Button>
</Grid>
<!--ItemsSource="{Binding InstalledPackages}"-->
<!--SelectedValue="{Binding SelectedPackage}"-->
<ComboBox
Grid.Column="1"
Grid.Row="0"
HorizontalAlignment="Stretch"
Margin="8,8,24,0"
VerticalAlignment="Top"
x:Name="SelectPackageComboBox">
1 year ago
<ComboBox.ItemTemplate>
<DataTemplate DataType="{x:Type models:InstalledPackage}">
<StackPanel Margin="10,0,0,0" VerticalAlignment="Top">
<TextBlock
Margin="0,5,0,5"
Name="NameTextBlock"
Text="{Binding DisplayName, Mode=OneWay}" />
</StackPanel>
</DataTemplate>
1 year ago
</ComboBox.ItemTemplate>
</ComboBox>
</Grid>
<!--<SelectableTextBlock
Margin="24,16"
Text="Console output here."
Grid.Row="1">
</SelectableTextBlock>-->
<avaloniaEdit:TextEditor
x:Name="Console"
Document="{Binding ConsoleDocument}"
IsReadOnly="True"
Grid.Row="1"
Margin="24,8,26,10"
ShowLineNumbers="True"
LineNumbersForeground="DarkSlateGray"
VerticalScrollBarVisibility="Auto"
FontFamily="Cascadia Code,Consolas,Menlo,Monospace" />
<!--<terminal:Terminal Grid.Row="1"
Margin="24,8,26,10"
Background="{DynamicResource ControlFillColorDisabledBrush}"
IsReadOnly="True"
AutoScroll="True"
FontFamily="Consolas"
ItemHeight="22"
Foreground="White"
BorderThickness="0"
VerticalScrollBarVisibility="Auto"
ItemsSource="{Binding ConsoleHistory, Mode=OneWay}"/>-->
<!--Command="{Binding LaunchWebUiCommand}"-->
<!--Visibility="{Binding ShowWebUiButton, Converter={StaticResource BoolToVisConverter}}"-->
<Button
Content="Open Web UI"
FontSize="12"
Grid.ColumnSpan="2"
Grid.Row="2"
HorizontalAlignment="Stretch"
Margin="24,0,24,8"/>
</Grid>
</controls:UserControlBase>