mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-12-16 12:09:51 +00:00
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:
parent
560aa01ed1
commit
a3551bc533
@ -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(
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user