mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-14 19:36:59 +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
d75490cca6
commit
d9128ece5b
2 changed files with 11 additions and 6 deletions
|
|
@ -24,13 +24,14 @@ namespace Ryujinx.Ava.UI.Helpers
|
||||||
|
|
||||||
public NotificationHelper(Window host,
|
public NotificationHelper(Window host,
|
||||||
NotificationPosition visiblePosition = NotificationPosition.BottomRight,
|
NotificationPosition visiblePosition = NotificationPosition.BottomRight,
|
||||||
int maxItems = MaxNotifications)
|
int maxItems = MaxNotifications,
|
||||||
|
Thickness? margin = null)
|
||||||
{
|
{
|
||||||
_notificationManager = new WindowNotificationManager(host)
|
_notificationManager = new WindowNotificationManager(host)
|
||||||
{
|
{
|
||||||
Position = visiblePosition,
|
Position = visiblePosition,
|
||||||
MaxItems = maxItems,
|
MaxItems = maxItems,
|
||||||
Margin = new Thickness(0, 0, 15, 40)
|
Margin = margin ?? new Thickness(0, 0, 15, 40)
|
||||||
};
|
};
|
||||||
|
|
||||||
Lazy<AsyncWorkQueue<Notification>> maybeAsyncWorkQueue = new(
|
Lazy<AsyncWorkQueue<Notification>> maybeAsyncWorkQueue = new(
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using Avalonia;
|
||||||
using Avalonia.Controls.Notifications;
|
using Avalonia.Controls.Notifications;
|
||||||
using Ryujinx.Ava.Common.Locale;
|
using Ryujinx.Ava.Common.Locale;
|
||||||
using Ryujinx.Ava.Systems.Configuration;
|
using Ryujinx.Ava.Systems.Configuration;
|
||||||
|
|
@ -17,8 +18,13 @@ namespace Ryujinx.Ava.UI.SetupWizard
|
||||||
|
|
||||||
public async Task Start()
|
public async Task Start()
|
||||||
{
|
{
|
||||||
// I wanted to do bottom center but that...literally just shows top center? Okay.
|
Notification = new NotificationHelper(
|
||||||
Notification = new NotificationHelper(wizardWindow, NotificationPosition.TopCenter);
|
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;
|
RyujinxSetupWizardWindow.IsOpen = true;
|
||||||
Start:
|
Start:
|
||||||
await FirstPage()
|
await FirstPage()
|
||||||
|
|
@ -44,8 +50,6 @@ namespace Ryujinx.Ava.UI.SetupWizard
|
||||||
Notification = null;
|
Notification = null;
|
||||||
wizardWindow.Close();
|
wizardWindow.Close();
|
||||||
RyujinxSetupWizardWindow.IsOpen = false;
|
RyujinxSetupWizardWindow.IsOpen = false;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async ValueTask<bool> SetupKeys()
|
private async ValueTask<bool> SetupKeys()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue