misc: chore: [ci skip] Reduce duplicated close button & command space styling for dialogs

This commit is contained in:
Evan Husted
2025-03-04 02:56:59 -06:00
parent f7976753fd
commit 57c22a1f32
5 changed files with 26 additions and 44 deletions

View File

@@ -25,16 +25,7 @@ namespace Ryujinx.Ava.Utilities.Compat
}
};
Style closeButton = new(x => x.Name("CloseButton"));
closeButton.Setters.Add(new Setter(WidthProperty, 80d));
Style closeButtonParent = new(x => x.Name("CommandSpace"));
closeButtonParent.Setters.Add(new Setter(HorizontalAlignmentProperty, Avalonia.Layout.HorizontalAlignment.Right));
contentDialog.Styles.Add(closeButton);
contentDialog.Styles.Add(closeButtonParent);
await ContentDialogHelper.ShowAsync(contentDialog);
await ContentDialogHelper.ShowAsync(contentDialog.ApplyStyles());
}
public CompatibilityList()