use the margin to force it to show bottom center

(boy i sure do hope this doesnt have any adverse effects on anything but my specific resolution & scaling configuration!)
This commit is contained in:
GreemDev 2025-11-24 21:44:26 -06:00
parent d75490cca6
commit d9128ece5b
2 changed files with 11 additions and 6 deletions

View file

@ -24,13 +24,14 @@ namespace Ryujinx.Ava.UI.Helpers
public NotificationHelper(Window host,
NotificationPosition visiblePosition = NotificationPosition.BottomRight,
int maxItems = MaxNotifications)
int maxItems = MaxNotifications,
Thickness? margin = null)
{
_notificationManager = new WindowNotificationManager(host)
{
Position = visiblePosition,
MaxItems = maxItems,
Margin = new Thickness(0, 0, 15, 40)
Margin = margin ?? new Thickness(0, 0, 15, 40)
};
Lazy<AsyncWorkQueue<Notification>> maybeAsyncWorkQueue = new(

View file

@ -1,3 +1,4 @@
using Avalonia;
using Avalonia.Controls.Notifications;
using Ryujinx.Ava.Common.Locale;
using Ryujinx.Ava.Systems.Configuration;
@ -17,8 +18,13 @@ namespace Ryujinx.Ava.UI.SetupWizard
public async Task Start()
{
// I wanted to do bottom center but that...literally just shows top center? Okay.
Notification = new NotificationHelper(wizardWindow, NotificationPosition.TopCenter);
Notification = new NotificationHelper(
wizardWindow,
// I wanted to do bottom center but that...literally just shows top center? Okay.
NotificationPosition.TopCenter,
margin: new Thickness(0, wizardWindow.Height - 120, 0, 0)
);
RyujinxSetupWizardWindow.IsOpen = true;
Start:
await FirstPage()
@ -44,8 +50,6 @@ namespace Ryujinx.Ava.UI.SetupWizard
Notification = null;
wizardWindow.Close();
RyujinxSetupWizardWindow.IsOpen = false;
}
private async ValueTask<bool> SetupKeys()