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); }
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... }
void ObjColorPicker_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs <Color> e) { FeatureTrackingManager.Instance.UseFeature(Features.App_ThemeColour); ThemeColours.SetThemeColour(ObjColorPicker.SelectedColor); }
void CmdClearColour_Click(object sender, RoutedEventArgs e) { FeatureTrackingManager.Instance.UseFeature(Features.App_ThemeColour); ThemeColours.ClearThemeColour(); }