public static void ReloadAppliedTheme(string themeName)
        {
            BluestacksUIColor bluestacksUiColor = BluestacksUIColor.Load(BlueStacksUIColorManager.GetThemeFilePath(themeName));

            if (bluestacksUiColor == null || bluestacksUiColor.DictBrush.Count <= 0)
            {
                return;
            }
            BlueStacksUIColorManager.AppliedTheme = bluestacksUiColor;
            RegistryManager.Instance.SetClientThemeNameInRegistry(themeName);
            CustomPictureBox.UpdateImagesFromNewDirectory("");
        }
 public static string GetThemeName(string themeName)
 {
     try
     {
         if (File.Exists(BlueStacksUIColorManager.GetThemeFilePath(themeName)))
         {
             return(LocaleStrings.GetLocalizedString(BluestacksUIColor.Load(BlueStacksUIColorManager.GetThemeFilePath(themeName)).DictThemeAvailable["ThemeDisplayName"], ""));
         }
         throw new Exception("Theme file not found exception " + themeName);
     }
     catch (Exception ex)
     {
         Logger.Warning("Error checking for theme availability in Theme file " + themeName + Environment.NewLine + ex.ToString());
         return("");
     }
 }
 public static void ApplyTheme(string themeName)
 {
     try
     {
         if (!File.Exists(BlueStacksUIColorManager.GetThemeFilePath(themeName)))
         {
             throw new Exception("Theme file not found exception " + themeName);
         }
         BluestacksUIColor bluestacksUiColor = BluestacksUIColor.Load(BlueStacksUIColorManager.GetThemeFilePath(themeName));
         if (bluestacksUiColor == null || bluestacksUiColor.DictBrush.Count <= 0)
         {
             return;
         }
         BlueStacksUIColorManager.AppliedTheme = bluestacksUiColor;
     }
     catch (Exception ex)
     {
         Logger.Error("Error checking for theme availability in Theme file " + themeName + Environment.NewLine + ex.ToString());
     }
 }