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:
@ -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()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user