Add ThemeChanged event to IPluginData

This commit is contained in:
Stone_Red
2025-12-24 23:58:53 +01:00
parent c90be28f38
commit e3d6eb4c8c
5 changed files with 49 additions and 16 deletions
+10 -1
View File
@@ -1,4 +1,5 @@
using System.Drawing;
using System;
using System.Drawing;
namespace DesktopMagic.Api;
@@ -7,6 +8,14 @@ namespace DesktopMagic.Api;
/// </summary>
public interface IPluginData
{
/// <summary>
/// Occurs when the application's theme has changed.
/// </summary>
/// <remarks>Subscribe to this event to be notified when the theme changes, allowing UI elements or
/// components to update their appearance accordingly. The event is raised after the theme change has been
/// applied.</remarks>
event EventHandler? ThemeChanged;
/// <summary>
/// Gets the current theme setting of the main application.
/// </summary>