Browse Source

added skip one-click button

pull/438/head
JT 10 months ago
parent
commit
0a513ff25c
  1. 20
      StabilityMatrix.Avalonia/Languages/Resources.Designer.cs
  2. 8
      StabilityMatrix.Avalonia/Languages/Resources.resx
  3. 5
      StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs
  4. 7
      StabilityMatrix.Avalonia/Views/Dialogs/NewOneClickInstallDialog.axaml
  5. 13
      StabilityMatrix.Avalonia/Views/Dialogs/RecommendedModelsDialog.axaml

20
StabilityMatrix.Avalonia/Languages/Resources.Designer.cs generated

@ -1895,6 +1895,24 @@ namespace StabilityMatrix.Avalonia.Languages {
}
}
/// <summary>
/// Looks up a localized string similar to Recommended Models.
/// </summary>
public static string Label_RecommendedModels {
get {
return ResourceManager.GetString("Label_RecommendedModels", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to While your package is installing, here are some models we recommend to help you get started..
/// </summary>
public static string Label_RecommendedModelsSubText {
get {
return ResourceManager.GetString("Label_RecommendedModelsSubText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refiner.
/// </summary>
@ -2463,7 +2481,7 @@ namespace StabilityMatrix.Avalonia.Languages {
}
/// <summary>
/// Looks up a localized string similar to Choose your preferred interface and click Install to get started.
/// Looks up a localized string similar to Choose your preferred interface to get started.
/// </summary>
public static string Text_OneClickInstaller_SubHeader {
get {

8
StabilityMatrix.Avalonia/Languages/Resources.resx

@ -520,7 +520,7 @@
<value>Welcome to Stability Matrix!</value>
</data>
<data name="Text_OneClickInstaller_SubHeader" xml:space="preserve">
<value>Choose your preferred interface and click Install to get started</value>
<value>Choose your preferred interface to get started</value>
</data>
<data name="Label_Installing" xml:space="preserve">
<value>Installing</value>
@ -948,4 +948,10 @@
<data name="TeachingTip_DownloadsExplanation" xml:space="preserve">
<value>Check the progress of your package installations and model downloads here.</value>
</data>
<data name="Label_RecommendedModels" xml:space="preserve">
<value>Recommended Models</value>
</data>
<data name="Label_RecommendedModelsSubText" xml:space="preserve">
<value>While your package is installing, here are some models we recommend to help you get started.</value>
</data>
</root>

5
StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs

@ -148,7 +148,10 @@ public partial class MainWindowViewModel : ViewModelBase
EventManager.Instance.OnTeachingTooltipNeeded();
};
await dialog.ShowAsync(App.TopLevel);
var firstDialogResult = await dialog.ShowAsync(App.TopLevel);
if (firstDialogResult != ContentDialogResult.Primary)
return;
var recommendedModelsViewModel = dialogFactory.Get<RecommendedModelsViewModel>();
dialog = new BetterContentDialog

7
StabilityMatrix.Avalonia/Views/Dialogs/NewOneClickInstallDialog.axaml

@ -191,9 +191,16 @@
</ui:TeachingTip.HeroContent>
</ui:TeachingTip>
<Grid ColumnDefinitions="Auto, *" Margin="0,4">
<ToggleSwitch IsChecked="{Binding ShowIncompatiblePackages}"
Margin="6, 0"
OffContent="Show All Packages"
OnContent="Show All Packages"/>
<Button Grid.Column="0"
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
Content="{x:Static lang:Resources.Label_SkipSetup}"
Command="{Binding OnCloseButtonClick}"/>
</Grid>
</StackPanel>
</controls:UserControlBase>

13
StabilityMatrix.Avalonia/Views/Dialogs/RecommendedModelsDialog.axaml

@ -125,17 +125,16 @@
</DataTemplate>
</controls:UserControlBase.Resources>
<StackPanel>
<TextBlock Text="Recommended Models"
TextAlignment="Center"
Margin="8"
<TextBlock Text="{x:Static lang:Resources.Label_RecommendedModels}"
TextAlignment="Left"
Margin="8,8"
FontSize="26"/>
<TextBlock Text="While your package is installing, here are some models we recommend to help you get started"
TextAlignment="Center"
Margin="8,0,8,8"
<TextBlock Text="{x:Static lang:Resources.Label_RecommendedModelsSubText}"
TextAlignment="Left"
Margin="8,0,0,8"
TextWrapping="WrapWithOverflow"/>
<TextBlock Text="Stable Diffusion 1.5"
Margin="8,16,8,4"
FontSize="16"

Loading…
Cancel
Save