Ejemplo n.º 1
0
        public void Default(bool setHotKeys = false)
        {
            AlwaysStartSpotify       = true;
            DontPromptToStartSpotify = false;
            CloseSpotifyWithToastify = true;
            ChangeSpotifyVolumeOnly  = false;

            FadeOutTime   = 4000;
            GlobalHotKeys = true;
            DisableToast  = false;

            ToastColorTop    = "#FF000000";
            ToastColorBottom = "#FF000000";
            ToastBorderColor = "#FF000000";

            ToastBorderThickness = 1.0;

            ToastWidth  = 300;
            ToastHeight = 75;

            ToastBorderCornerRadiusTopLeft     = 0;
            ToastBorderCornerRadiusTopRight    = 0;
            ToastBorderCornerRadiusBottomRight = 0;
            ToastBorderCornerRadiusBottomLeft  = 0;

            var position = ScreenHelper.GetDefaultToastPosition(ToastWidth, ToastHeight);

            PositionLeft = position.X;
            PositionTop  = position.Y;

            ClipboardTemplate = "I'm currently listening to {0}";

            SaveTrackToFile          = false;
            PreventAnalytics         = false;
            PreventSleepWhilePlaying = false;

            Hotkey.ClearAll();

            // only set hotkeys when it's requested (we don't set hotkeys when
            // loading from XML since it will create duplicates)
            if (setHotKeys)
            {
                HotKeys = _defaultHotKeys;
            }

            Plugins = new List <PluginDetails>();

            // there are a few settings that we don't really want to override when
            // clearing settings (in fact these are more properties that we store
            // alongside settings for convenience), so don't reset them if they have
            // values
            if (_theOne != null)
            {
                FirstRun        = _theOne.FirstRun;
                PreviousVersion = _theOne.PreviousVersion;
                PreviousOS      = _theOne.PreviousOS;
            }
        }
Ejemplo n.º 2
0
        public void Default(bool setHotKeys = false)
        {
            AlwaysStartSpotify       = true;
            DontPromptToStartSpotify = false;
            CloseSpotifyWithToastify = true;
            ChangeSpotifyVolumeOnly  = false;

            FadeOutTime   = 4000;
            GlobalHotKeys = true;
            DisableToast  = false;

            ToastColorTop    = "#FF000000";
            ToastColorBottom = "#FF000000";
            ToastBorderColor = "#FF000000";

            ToastBorderThickness = 1.0;

            ToastWidth  = 300;
            ToastHeight = 75;

            ToastBorderCornerRadiusTopLeft     = 0;
            ToastBorderCornerRadiusTopRight    = 0;
            ToastBorderCornerRadiusBottomRight = 0;
            ToastBorderCornerRadiusBottomLeft  = 0;

            var position = ScreenHelper.GetDefaultToastPosition(ToastWidth, ToastHeight);

            PositionLeft = position.X;
            PositionTop  = position.Y;

            ClipboardTemplate = "I'm currently listening to {0}";

            SaveTrackToFile = false;

            Hotkey.ClearAll();

            // only set hotkeys when it's requested (we don't set hotkeys when
            // loading from XML since it will create duplicates)
            if (setHotKeys)
            {
                HotKeys = _defaultHotKeys;
            }

            Plugins = new List <PluginDetails>();
        }
Ejemplo n.º 3
0
        public void Default()
        {
            AlwaysStartSpotify       = true;
            DontPromptToStartSpotify = false;
            CloseSpotifyWithToastify = true;
            ChangeSpotifyVolumeOnly  = false;

            FadeOutTime   = 4000;
            GlobalHotKeys = true;
            DisableToast  = false;

            ToastColorTop    = "#FF000000";
            ToastColorBottom = "#FF000000";
            ToastBorderColor = "#FF000000";

            ToastBorderThickness = 1.0;

            ToastWidth  = 300;
            ToastHeight = 75;

            ToastBorderCornerRadiusTopLeft     = 0;
            ToastBorderCornerRadiusTopRight    = 0;
            ToastBorderCornerRadiusBottomRight = 0;
            ToastBorderCornerRadiusBottomLeft  = 0;

            var position = ScreenHelper.GetDefaultToastPosition(ToastWidth, ToastHeight);

            PositionLeft = position.X;
            PositionTop  = position.Y;

            ClipboardTemplate = "I'm currently listening to {0}";

            UseSpotifyBeta = false;

            Hotkey.ClearAll();

            HotKeys = _defaultHotKeys;

            Plugins = new List <PluginDetails>();
        }
Ejemplo n.º 4
0
        public void Default()
        {
            AlwaysStartSpotify       = null;
            CloseSpotifyWithToastify = true;

            FadeOutTime   = 2000;
            GlobalHotKeys = true;
            DisableToast  = false;

            ToastColorTop    = "#FF999999";
            ToastColorBottom = "#FF353535";
            ToastBorderColor = "#FF292929";

            ToastBorderThickness = 1.0;

            ToastWidth  = 300;
            ToastHeight = 75;

            ToastBorderCornerRadiusTopLeft     = 4.0;
            ToastBorderCornerRadiusTopRight    = 4.0;
            ToastBorderCornerRadiusBottomRight = 4.0;
            ToastBorderCornerRadiusBottomLeft  = 4.0;

            OffsetRight  = 5.0;
            OffsetBottom = 5.0;

            ClipboardTemplate = "I'm currently listening to {0}";

            Hotkey.ClearAll();

            HotKeys = new List <Hotkey>
            {
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.Up, Action = SpotifyAction.PlayPause
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.Down, Action = SpotifyAction.Stop
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.Left, Action = SpotifyAction.PreviousTrack
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.Right, Action = SpotifyAction.NextTrack
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.M, Action = SpotifyAction.Mute
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.PageDown, Action = SpotifyAction.VolumeDown
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.PageUp, Action = SpotifyAction.VolumeUp
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.Space, Action = SpotifyAction.ShowToast
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.S, Action = SpotifyAction.ShowSpotify
                },
                new Hotkey {
                    Ctrl = true, Alt = true, Key = System.Windows.Input.Key.C, Action = SpotifyAction.CopyTrackInfo
                }
            };

            Plugins = new List <PluginDetails>();
        }