Description
It would be nice if there was some enum to assign to Notification.ImageContent that would show images native to the OS.
Something along the lines of:
Notification notif = new Notification
{
Title = "title",
Message = "message",
ContentImage = ImageEnum.Warning
};
Button bt = new Button { Command = new Command((sender, e) => notif.Show()) };
Content = new StackLayout
{
Items =
{
bt
}
};
which would use the warning icon from the current OS. So for Windows,
for the default GNOME theme and
for Mac.
I don't know how doable it is to get the icons on Windows, they're fairly easy to get on Linux and Mac though.
Would also need discussion on which Fields to include. Error
, Information
, Warning
, Question
? More?
For a list of available standardized icons on Linux, a list can be found here. As far as I know there's no documentation of Mac icons anywhere online, but they can be found at /System/Library/CoreServices/IconsetResources.bundle/Contents/Resources
or /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
depending on the macOS version.