public void ApplyTheme(string themePath)
{
//Save theme path
GlobalSetting.SetConfig("Theme", themePath);
//Save background color
try
{
ImageGlass.Theme.Theme th = new ImageGlass.Theme.Theme(themePath);
GlobalSetting.SetConfig("BackgroundColor", th.backcolor.ToArgb().ToString());
}
catch
{
GlobalSetting.SetConfig("BackgroundColor", Color.White.ToArgb().ToString());
}
}