Browse Source

Merge pull request #177 from ionite34/fix-input-infobar

pull/55/head
Ionite 1 year ago committed by GitHub
parent
commit
ce2bea7ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      StabilityMatrix.Avalonia/DesignData/MockLaunchPageViewModel.cs
  2. 7
      StabilityMatrix.Avalonia/Views/LaunchPageView.axaml

10
StabilityMatrix.Avalonia/DesignData/MockLaunchPageViewModel.cs

@ -41,6 +41,16 @@ public class MockLaunchPageViewModel : LaunchPageViewModel
RunningPackage = new DankDiffusion(null!, null!, null!, null!);
Console.Document.Insert(0,
"""
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.5.0
Commit hash: <none>
Fetching updates for midas...
Checking out commit for midas with hash: 2e42b7f...
""");
return Task.CompletedTask;
}

7
StabilityMatrix.Avalonia/Views/LaunchPageView.axaml

@ -171,12 +171,10 @@
<StackPanel Grid.Column="1" Margin="8" Spacing="4">
<!-- Info bar for manual input -->
<ui:InfoBar
Background="{DynamicResource ComboBoxItemBackground}"
Severity="Warning"
Title="Input"
IsIconVisible="False"
IsClosable="False"
Severity="Informational"
Opacity="1"
IsOpen="{Binding ShowManualInputPrompt, Mode=TwoWay}"
Margin="0">
<ui:InfoBar.ActionButton>
@ -190,9 +188,8 @@
</ui:InfoBar>
<!-- Info bar for auto prompts -->
<ui:InfoBar
Background="{DynamicResource ComboBoxItemBackground}"
Severity="Warning"
Title="Input required"
Severity="Informational"
IsOpen="{Binding ShowConfirmInputPrompt, Mode=TwoWay}"
Margin="0"
Message="Confirm?">

Loading…
Cancel
Save