Example #1
0
        /// <summary>
        /// V2.1: use bindings for this
        /// </summary>
        private void Settings_Init()
        {
            Settings_Tab_General_DefaultCatSystemBox.DataContext = GlobalState.CategoryManager.CategorySystems; // category system

            Settings_Tab_Appearance_DotSizeXSlider.Value = ApplicationSettings.DotSize.X;
            Settings_Tab_Appearance_DotSizeYSlider.Value = ApplicationSettings.DotSize.Y;

            Settings_Tab_Appearance_GradientEnabledCheckBox.IsChecked = ApplicationSettings.AccentEnabled;

            // Set up some more stuff (can we use bindings?)

            // Temp stuff.
            Settings_Tab_Appearance_DotSizeXText.Text = Settings_Tab_Appearance_DotSizeXSlider.Value.ToString();
            Settings_Tab_Appearance_DotSizeYText.Text = Settings_Tab_Appearance_DotSizeYSlider.Value.ToString();
            //Settings_Tab_Appearance_DotSizeY.DataContext = Settings_Tab_Appearance_DotSizeYSlider;
            Settings_Tab_Appearance_LineSizeText.Text = Settings_Tab_Appearance_LineSizeSlider.Value.ToString();

            // Ugly hack, but I can't be bothered to create a dependency property when I have half-life 2 sitting on my desktop ready to be streamed again and being almost finished with this damn project that took way too long
            // for something that isn't really a big project. for emerald, sure, but not this. Move to dependencyproperty in Dano.
            Settings_Tab_Appearance_AccentColourPicker.SelectedColour = ApplicationSettings.AccentColour1;
            Settings_Tab_Appearance_AccentColourPicker.UpdateRectangle();

            // Ditto
            Settings_Tab_Appearance_MenuGradientSecondColourPicker.SelectedColour = ApplicationSettings.AccentColour2;
            Settings_Tab_Appearance_MenuGradientSecondColourPicker.UpdateRectangle();
        }
Example #2
0
 private void Settings_Tab_Appearance_AccentColourPicker_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     Settings_Tab_Appearance_AccentColourPicker.ShowDialog();
 }