public void ReloadSettings() { if (Settings.Get <bool>("EnableVisualiser")) { StartVisualiser(); } else { StopVisualiser(); } if (visualiser != null) { visualiser.ReloadSettings(); } this.TopMost = Settings.Get <bool>("TopMost"); }
public void ReloadSettings() { if (Settings.Get <bool>("EnableVisualiser")) { StartVisualiser(); } else { StopVisualiser(); } if (visualiser != null) { visualiser.ReloadSettings(); } this.TopMost = Settings.Get <bool>("TopMost"); this.Location = new Point(Settings.Get <int>("LocationX"), Settings.Get <int>("LocationY")); float vol = Settings.Get <float>("Volume"); panelPlayBtn.BackColor = Settings.Get <Color>("AccentColor"); this.BackColor = Settings.Get <Color>("BaseColor"); panelRight.BackColor = Color.FromArgb((int)((BackColor.R * 1.1f).Bound(0, 255)), (int)((BackColor.G * 1.1f).Bound(0, 255)), (int)((BackColor.B * 1.1f).Bound(0, 255))); SetVolumeLabel(vol); this.Opacity = Settings.Get <float>("FormOpacity"); if (Settings.Get <bool>("HideFromAltTab")) { this.ShowInTaskbar = false; int windowStyle = GetWindowLong(this.Handle, GWL_EXSTYLE); SetWindowLong(this.Handle, GWL_EXSTYLE, windowStyle | WS_EX_TOOLWINDOW); notifyIcon1.Visible = true; } else { this.ShowInTaskbar = true; int windowStyle = GetWindowLong(this.Handle, GWL_EXSTYLE); SetWindowLong(this.Handle, GWL_EXSTYLE, windowStyle & ~WS_EX_TOOLWINDOW); notifyIcon1.Visible = false; } }