feat: Add GPU support options and enhance UI for Face Encoder and Matcher functionalities

This commit is contained in:
Maddo 2026-05-24 18:33:54 +02:00
commit 6e05869b04
9 changed files with 160 additions and 115 deletions

View file

@ -331,8 +331,7 @@ public partial class FaceAiTabView : Avalonia.Controls.UserControl
var contentGrid = new Grid
{
Margin = new Avalonia.Thickness(0, 12, 0, 12),
RowDefinitions = new RowDefinitions("Auto,*,Auto"),
RowSpacing = 12
RowDefinitions = new RowDefinitions("Auto,*,Auto")
};
Grid.SetRow(contentGrid, 1);
@ -371,7 +370,8 @@ public partial class FaceAiTabView : Avalonia.Controls.UserControl
var toolbar = new StackPanel
{
Orientation = Orientation.Horizontal,
Spacing = 8
Spacing = 8,
Margin = new Avalonia.Thickness(0, 0, 0, 12)
};
var zoomOutButton = new Button { Content = "Zoom -", MinWidth = 80, IsEnabled = imageControl is not null };
@ -427,7 +427,8 @@ public partial class FaceAiTabView : Avalonia.Controls.UserControl
AcceptsReturn = true,
TextWrapping = TextWrapping.Wrap,
FontFamily = new FontFamily("Cascadia Mono, Consolas, monospace"),
MinHeight = 180
MinHeight = 180,
Margin = new Avalonia.Thickness(0, 12, 0, 0)
};
Grid.SetRow(debugBox, 2);
contentGrid.Children.Add(debugBox);