added tray menu

This commit is contained in:
2026-08-12 04:59:22 +05:00
parent 08192d317e
commit a0d3098fe4
21 changed files with 1327 additions and 42 deletions
+20
View File
@@ -0,0 +1,20 @@
namespace CursorLang.Services;
/// <summary>
/// The icon in the notification area — the only face of an application that works
/// in the background.
/// </summary>
public interface ITrayIcon
{
/// <summary>The user asks for the settings window: the icon or its menu.</summary>
event EventHandler? OpenRequested;
/// <summary>The user asks the application to quit. There is no other way out.</summary>
event EventHandler? ExitRequested;
/// <summary>
/// Puts the icon into the notification area. Returns <c>false</c> when Windows
/// refuses to take it.
/// </summary>
bool Install();
}