aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/SkinCommands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/SkinCommands.cs')
-rw-r--r--ShiftOS.WinForms/SkinCommands.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/SkinCommands.cs b/ShiftOS.WinForms/SkinCommands.cs
new file mode 100644
index 0000000..1f32d96
--- /dev/null
+++ b/ShiftOS.WinForms/SkinCommands.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Newtonsoft.Json;
+using ShiftOS.Engine;
+using ShiftOS.Objects.ShiftFS;
+
+namespace ShiftOS.WinForms
+{
+ [Namespace("skins")]
+ public static class SkinCommands
+ {
+ [Command("reset")]
+ [RequiresUpgrade("shifter")]
+ public static bool ResetSkin()
+ {
+ Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(new Skin()));
+ SkinEngine.LoadSkin();
+ return true;
+ }
+ }
+}