public void TurnOn() { AnimThickness.From = LeftSide; AnimThickness.To = RightSide; AnimThickness.Duration = TimeSpan.FromSeconds(0.2); Dot.BeginAnimation(Ellipse.MarginProperty, AnimThickness); InActivesbFillAnimation.Begin(); Program.TrayMenu.NpcWorkTrayCheckBox.Checked = true; this.Toggled = true; }
public void TurnOn() { AnimThickness.From = LeftSide; AnimThickness.To = RightSide; AnimThickness.Duration = TimeSpan.FromSeconds(0.3); Dot.BeginAnimation(Ellipse.MarginProperty, AnimThickness); InActivesbFillAnimation.Begin(); this.LabelDayMode.Foreground = SpotifyGrayNightBrush; this.LabelNightMode.Foreground = SpotifyGreenBrush; Dot.Fill = new SolidColorBrush(Color.FromRgb(0x17, 0x17, 0x17)); this.IsNightModeToggled = true; }