2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-02 00:43:42 -04:00

Notification overhaul and update to avaloniaui 0.10.7

This commit is contained in:
Xjph
2021-10-12 20:45:00 -02:30
parent 840ccad5bf
commit 5159500644
10 changed files with 279 additions and 75 deletions

View File

@ -3,18 +3,22 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Observatory.Framework;
namespace Observatory.UI.ViewModels
{
public class NotificationViewModel : ViewModelBase
{
public NotificationViewModel(string title, string detail)
public NotificationViewModel(NotificationArgs notificationArgs)
{
Notification = new()
{
Title = title,
Detail = detail,
Title = notificationArgs.Title,
Detail = notificationArgs.Detail,
Timeout = notificationArgs.Timeout,
XPos = notificationArgs.XPos,
YPos = notificationArgs.YPos,
Colour = Avalonia.Media.Color.FromUInt32(Properties.Core.Default.NativeNotifyColour).ToString()
};