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;
        }
예제 #2
0
        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;
        }