From 229447a53493334d1bf9af2477c223adb1e2dddd Mon Sep 17 00:00:00 2001 From: ema Date: Wed, 24 Jul 2024 09:28:40 +0800 Subject: [PATCH] update: README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5183a1a..89f8baf 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,14 @@ void OnClick(object? sender, EventArgs e) } ``` +You can set the context menu theme like following: + +```csharp +// NotifyIcon default theme follows the system theme. +// Change it to Dark theme. +NotifyIcon.Theme = NotifyIconTheme.Dark; +``` + ## Demo 1. [NotifyIcon.Demo.Avalonia](https://github.com/lemutec/NotifyIconEx/tree/master/NotifyIcon.Demo.Avalonia) for [Avalonia](https://github.com/AvaloniaUI/Avalonia) Application.