mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Rename BuiltInWindowElements to BuiltInPlugins
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ using System.Drawing.Text;
|
||||
|
||||
using SettingAttribute = DesktopMagic.Api.Settings.SettingAttribute;
|
||||
|
||||
namespace DesktopMagic.BuiltInWindowElements;
|
||||
namespace DesktopMagic.BuiltInPlugins;
|
||||
|
||||
internal class CpuMonitorPlugin : Plugin
|
||||
{
|
||||
+6
-6
@@ -5,22 +5,22 @@ using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Text;
|
||||
|
||||
namespace DesktopMagic.BuiltInWindowElements;
|
||||
namespace DesktopMagic.BuiltInPlugins;
|
||||
|
||||
internal class DatePlugin : Plugin
|
||||
{
|
||||
[Setting("short-date", "Short date")]
|
||||
private readonly CheckBox shortDatecheckBox = new CheckBox(true);
|
||||
private readonly CheckBox shortDateCheckBox = new CheckBox(true);
|
||||
|
||||
private DateTime oldDateTime = DateTime.MinValue;
|
||||
private Color oldColor = Color.White;
|
||||
private string oldFont = string.Empty;
|
||||
private bool oldShortDatecheckBoxValue;
|
||||
private bool oldShortDateCheckBoxValue;
|
||||
public override int UpdateInterval => 1000;
|
||||
|
||||
public override Bitmap? Main()
|
||||
{
|
||||
if (oldDateTime.Date == DateTime.Now.Date && oldColor == Application.Theme.PrimaryColor && oldFont == Application.Theme.Font && oldShortDatecheckBoxValue == shortDatecheckBox.Value)
|
||||
if (oldDateTime.Date == DateTime.Now.Date && oldColor == Application.Theme.PrimaryColor && oldFont == Application.Theme.Font && oldShortDateCheckBoxValue == shortDateCheckBox.Value)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -28,9 +28,9 @@ internal class DatePlugin : Plugin
|
||||
oldDateTime = DateTime.Now;
|
||||
oldColor = Application.Theme.PrimaryColor;
|
||||
oldFont = Application.Theme.Font;
|
||||
oldShortDatecheckBoxValue = shortDatecheckBox.Value;
|
||||
oldShortDateCheckBoxValue = shortDateCheckBox.Value;
|
||||
|
||||
string date = shortDatecheckBox.Value ? DateTime.Now.ToShortDateString() : DateTime.Now.ToLongDateString();
|
||||
string date = shortDateCheckBox.Value ? DateTime.Now.ToShortDateString() : DateTime.Now.ToLongDateString();
|
||||
|
||||
Font font = new Font(Application.Theme.Font, 200);
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
|
||||
namespace DesktopMagic.BuiltInWindowElements;
|
||||
namespace DesktopMagic.BuiltInPlugins;
|
||||
|
||||
internal class MusicVisualizerPlugin : Plugin
|
||||
{
|
||||
+1
-1
@@ -5,7 +5,7 @@ using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Text;
|
||||
|
||||
namespace DesktopMagic.BuiltInWindowElements;
|
||||
namespace DesktopMagic.BuiltInPlugins;
|
||||
|
||||
internal class TimePlugin : Plugin
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
using DesktopMagic.BuiltInWindowElements;
|
||||
using DesktopMagic.BuiltInPlugins;
|
||||
using DesktopMagic.DataContexts;
|
||||
using DesktopMagic.Dialogs;
|
||||
using DesktopMagic.Helpers;
|
||||
|
||||
Reference in New Issue
Block a user