feat: Enhance Face AI upload functionality and UI
- Updated MainWindow.axaml to increase height and add new UI elements for SSH upload configuration. - Implemented commands for opening source and destination paths in file explorer. - Added FaceUploadPath and SSH configuration properties to DataModel and AiSettingsViewModel. - Introduced validation for FaceUploadPath format and commands for uploading face encoder output. - Enhanced PickerPreferenceService to manage SSH credentials and upload preferences. - Updated settings persistence to include FaceUploadPath and SSH preferences. - Added tests for FaceUploadPath validation and upload command enabling logic.
This commit is contained in:
parent
e68608312a
commit
e9142df97c
22 changed files with 1477 additions and 84 deletions
|
|
@ -273,10 +273,11 @@ public partial class AvaloniaMainWindow : Window
|
|||
var dialog = new Window
|
||||
{
|
||||
Title = title,
|
||||
Width = 480,
|
||||
Width = 960,
|
||||
Height = 560,
|
||||
CanResize = false,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
SizeToContent = SizeToContent.Height
|
||||
SizeToContent = SizeToContent.Manual
|
||||
};
|
||||
|
||||
dialog.Content = BuildMessageDialogContent(message, () => dialog.Close());
|
||||
|
|
@ -311,11 +312,17 @@ public partial class AvaloniaMainWindow : Window
|
|||
Spacing = 12
|
||||
};
|
||||
|
||||
layout.Children.Add(new TextBlock
|
||||
layout.Children.Add(new ScrollViewer
|
||||
{
|
||||
Text = message,
|
||||
TextWrapping = Avalonia.Media.TextWrapping.Wrap,
|
||||
MaxWidth = 420
|
||||
Height = 460,
|
||||
HorizontalScrollBarVisibility = Avalonia.Controls.Primitives.ScrollBarVisibility.Auto,
|
||||
VerticalScrollBarVisibility = Avalonia.Controls.Primitives.ScrollBarVisibility.Auto,
|
||||
Content = new TextBlock
|
||||
{
|
||||
Text = message,
|
||||
TextWrapping = Avalonia.Media.TextWrapping.Wrap,
|
||||
FontFamily = new Avalonia.Media.FontFamily("Cascadia Mono, Consolas, monospace")
|
||||
}
|
||||
});
|
||||
|
||||
var closeButton = new Button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue