mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +02:00
35 lines
843 B
C#
35 lines
843 B
C#
using DesktopMagicPluginAPI;
|
|
|
|
using System.Drawing;
|
|
|
|
namespace DesktopMagic.Plugins
|
|
{
|
|
internal class PluginData : IPluginData
|
|
{
|
|
private readonly PluginWindow window;
|
|
|
|
public PluginData(PluginWindow window)
|
|
{
|
|
this.window = window;
|
|
}
|
|
|
|
public string Font => Theme.Font;
|
|
|
|
public Color Color => Theme.PrimaryColor;
|
|
|
|
public ITheme Theme { get; } = MainWindow.Theme;
|
|
|
|
public Size WindowSize => new Size((int)window.ActualWidth, (int)window.ActualHeight);
|
|
|
|
public Point WindowPosition => new Point((int)window.Left, (int)window.Top);
|
|
|
|
public string PluginName => window.PluginName;
|
|
|
|
public string PluginPath => window.PluginFolderPath;
|
|
|
|
public void UpdateWindow()
|
|
{
|
|
window.UpdatePluginWindow();
|
|
}
|
|
}
|
|
} |