public void Apply(ApplicationDesign design) { try { design.AccentColor.ApplyTheme(); } catch (Exception) { design.AccentColor = AccentColors.First(x => x.Name == "Blue"); design.AccentColor.ApplyTheme(); } try { design.AppTheme.ApplyTheme(); } catch (Exception) { design.AppTheme = AppThemes.First(); design.AppTheme.ApplyTheme(); } if (design.AudioVisualisation != null) { design.AudioVisualisation.AudioVisualisationPlugin.Refresh(); } }
public void Apply(ApplicationDesign design) { try { design.AccentColor.ApplyTheme(); } catch (Exception) { design.AccentColor = AccentColors.First(x => x.Name == "Blue"); design.AccentColor.ApplyTheme(); } try { design.AppTheme.ApplyTheme(); } catch (Exception) { design.AppTheme = AppThemes.First(); design.AppTheme.ApplyTheme(); } if (design.AudioVisualisation != null) design.AudioVisualisation.Visualisation.Refresh(); }
public bool Equals(ApplicationDesign obj) { return(AccentColor.Equals(obj.AccentColor) && AppTheme.Equals(obj.AppTheme) && ApplicationBackground != null && ApplicationBackground.Equals(obj.ApplicationBackground)); }
public override sealed void SetStandardValues() { SoundOutDeviceID = SoundOutManager.DefaultDevicePlaceholder; DisableNotificationInGame = true; ShowMagicArrowBelowCursor = true; WaveSourceBits = 16; SampleRate = -1; var language = Languages.FirstOrDefault(x => x.Code == Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName); Language = language == null ? "en" : language.Code; Notification = NotificationType.Top; ApplicationDesign = new ApplicationDesign(); ApplicationDesign.SetStandard(); NotificationShowTime = 5000; RememberTrackImportPlaylist = false; PlaylistToImportTrack = null; LoadAlbumCoverFromInternet = true; DownloadAlbumCoverQuality = ImageQuality.Maximum; SaveCoverLocal = false; TrimTrackname = true; ShowArtistAndTitle = true; SoundOutMode = WasapiOut.IsSupportedOnCurrentPlatform ? SoundOutMode.WASAPI : SoundOutMode.DirectSound; Latency = 100; IsCrossfadeEnabled = false; CrossfadeDuration = 4; UseThinHeaders = true; MinimizeToTray = false; ShowNotificationIfMinimizeToTray = true; Downloader = new DownloadManager(); TabControlTransition = TransitionType.Left; ShowProgressInTaskbar = true; AppCommunicationSettings = new AppCommunicationSettings(); AppCommunicationSettings.SetStandard(); DownloadSettings = new DownloadSettings(); DownloadSettings.SetDefault(); CheckForHurricaneUpdates = true; CheckForYoutubeDlUpdates = true; Passwords = new List<PasswordEntry>(); }
public bool Equals(ApplicationDesign obj) { return AccentColor.Equals(obj.AccentColor) && AppTheme.Equals(obj.AppTheme) && ApplicationBackground != null && ApplicationBackground.Equals(obj.ApplicationBackground); }