Пример #1
0
        private void LoadSettings()
        {
            TT.InitializeOptions();

            SwitchTaskbarBeingEdited("Main");

            UseMaximizedSettingsCheckBox.IsChecked = TT.Options.Settings.UseDifferentSettingsWhenMaximized;
            StartMinimizedCheckBox.IsChecked       = TT.Options.Settings.StartMinimized;
            StartWhenLaunchedCheckBox.IsChecked    = TT.Options.Settings.StartWhenLaunched;
        }
Пример #2
0
        private void SaveSettings()
        {
            TT.Options.Settings.MainTaskbarStyle.AccentState           = (byte)((int)AccentStateComboBox.SelectedItem);
            TT.Options.Settings.MainTaskbarStyle.GradientColor         = GradientColorPicker.SelectedColor.ToString();
            TT.Options.Settings.MainTaskbarStyle.WindowsAccentAlpha    = (byte)WindowsAccentAlphaSlider.Value;
            TT.Options.Settings.MainTaskbarStyle.Colorize              = ColorizeBlurCheckBox.IsChecked ?? false;
            TT.Options.Settings.MainTaskbarStyle.UseWindowsAccentColor = WindowsAccentColorCheckBox.IsChecked ?? false;

            TT.Options.Settings.UseDifferentSettingsWhenMaximized = UseMaximizedSettingsCheckBox.IsChecked ?? false;
            TT.Options.Settings.StartMinimized    = StartMinimizedCheckBox.IsChecked ?? false;
            TT.Options.Settings.StartWhenLaunched = StartWhenLaunchedCheckBox.IsChecked ?? false;

            TT.SaveOptions();
        }