mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-02 00:43:42 -04:00
feat: cosmetic overhaul of native notification popup (#13)
* feat: cosmetic overhaul of native notification popup * fix: use correct screen default * feat: move notification test from debug build type to button press * fix: not debug anymore * fix: rearrange native notification settings controls * fix: account for display scaling when positioning notification * fix: guard against a screen that no longer exists * fix: safer way to get screens, in case control tree changes
This commit is contained in:
@ -10,7 +10,13 @@ namespace Observatory.UI.ViewModels
|
||||
{
|
||||
public NotificationViewModel(string title, string detail)
|
||||
{
|
||||
Notification = new() { Title = title, Detail = detail };
|
||||
|
||||
Notification = new()
|
||||
{
|
||||
Title = title,
|
||||
Detail = detail,
|
||||
Colour = Avalonia.Media.Color.FromUInt32(Properties.Core.Default.NativeNotifyColour).ToString()
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user