public void Run()
 {
     try
     {
         for (int i = 0; i < Settings.MenuSettings.RainbowModeIterations; i++)
         {
             _menuColorAccessor.SetMenuColors(ApplicationSettings.Instance.ProcessName,
                                              MenuColors.RandomPalette());
         }
     }
     catch (Exception e)
     {
         _logger.LogError(e, "Error changing menu colors.");
     }
 }
        public void Run()
        {
            try
            {
                _statusHubEmitter.ShowEvent("Rainbow Mode Started");

                for (int i = 0; i < Settings.MenuSettings.RainbowModeIterations; i++)
                {
                    _menuColorAccessor.SetMenuColors(ApplicationSettings.Instance.ProcessName,
                                                     MenuColors.RandomPalette());
                }

                _statusHubEmitter.ShowEvent("Rainbow Mode Ended");
            }
            catch (Exception e)
            {
                _logger.LogError(e, "Error changing menu colors.");
            }
        }