From 4d0119e4b3278a5a4cebc081847a76c8ff9b87ae Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 21 Jan 2026 21:22:40 +0100 Subject: [PATCH] Cleanup plugin template --- src/DesktopMagic/Plugins/PluginManager.xaml.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DesktopMagic/Plugins/PluginManager.xaml.cs b/src/DesktopMagic/Plugins/PluginManager.xaml.cs index 50428e9..e4b4f64 100644 --- a/src/DesktopMagic/Plugins/PluginManager.xaml.cs +++ b/src/DesktopMagic/Plugins/PluginManager.xaml.cs @@ -505,16 +505,13 @@ public class {pluginSafeName}Plugin : Plugin public override Bitmap Main() {{ Bitmap bmp = new Bitmap(2000, 1000); + bmp.SetResolution(100, 100); // Set DPI to avoid scaling issues. using (Graphics g = Graphics.FromImage(bmp)) {{ - g.Clear(Application.Theme.PrimaryColor); // Set the background color to the color specified in the DesktopMagic application. - - g.DrawString(""Hello World"", new Font(Application.Theme.Font, 100), Brushes.Black, new PointF(0, 0)); // Draw ""Hello World"" to the image. + g.DrawString(""Hello World!"", new Font(Application.Theme.Font, 100), new SolidBrush(Application.Theme.PrimaryColor), new PointF(0, 0)); // Draw ""Hello World"" to the image. }} - bmp.SetResolution(300, 300); // Set DPI to avoid scaling issues. - return bmp; // Return the image. }} }}