aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/SkinCommands.cs
blob: 1f32d968f263a3e0da8a38fa9f439ad61bc030d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
        }
    }
}