aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/SkinCommands.cs
blob: f35c449278f3f282cf38641fdd2b356b2973d485 (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
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
{
    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;
        }
    }
}