Exemple #1
0
        void ThemeColorButton_Click(object sender, RoutedEventArgs e)
        {
            FeatureTrackingManager.Instance.UseFeature(Features.App_ThemeColour);
            AugmentedButton button = sender as AugmentedButton;
            Color           color  = (Color)button.Tag;

            ThemeColours.SetThemeColour(color);
        }
Exemple #2
0
        private static void DoPostUpgrade(SplashScreenWindow splashscreen_window)
        {
            // NB NB NB NB: You CANT USE ANYTHING IN THE USER CONFIG AT THIS POINT - it is not yet decided until LOGIN has completed...

            splashscreen_window.UpdateMessage("Loading themes");
            ThemeColours.AddToApplicationResources(application);
            ThemeTextStyles.AddToApplicationResources(application);
            ThemeScrollbar.AddToApplicationResources(application);
            ThemeTabItem.AddToApplicationResources(application);
            DualTabbedLayout.GetWindowOverride = delegate() { return(new StandardWindow()); };

            // Force tooltips to stay open
            ToolTipService.ShowDurationProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(3600000));

            // Make sure the data directories exist...
            if (!Directory.Exists(ConfigurationManager.Instance.BaseDirectoryForUser))
            {
                Directory.CreateDirectory(ConfigurationManager.Instance.BaseDirectoryForUser);
            }

            // NB NB NB NB: You CANT USE ANYTHING IN THE USER CONFIG AT THIS POINT - it is not yet decided until LOGIN has completed...
        }
Exemple #3
0
 void ObjColorPicker_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs <Color> e)
 {
     FeatureTrackingManager.Instance.UseFeature(Features.App_ThemeColour);
     ThemeColours.SetThemeColour(ObjColorPicker.SelectedColor);
 }
Exemple #4
0
 void CmdClearColour_Click(object sender, RoutedEventArgs e)
 {
     FeatureTrackingManager.Instance.UseFeature(Features.App_ThemeColour);
     ThemeColours.ClearThemeColour();
 }