/// <summary> /// Set colors, e.g. background and watermark, /// and colorize icons according to the theme /// </summary> private void UpdateTheme(VSDiagramView view) { if (view.HasWatermark) { VSHelpers.AssignLinkLabelColor(view.Watermark); } view.BackColor = VSColorTheme.GetThemedColor(EnvironmentColors.ScrollBarBackgroundColorKey); foreach (var action in _themeChangedActions) { action(); } view.Invalidate(); }
internal WizardPageRuntimeConfig(ModelBuilderWizardForm wizard) : base(wizard) { InitializeComponent(); Logo = Resources.PageIcon; Headline = Resources.RuntimeConfigPage_Title; Id = "WizardPageRuntimeConfig"; HelpKeyword = null; promptLabel.Font = LabelFont; promptLabel.Text = Resources.RuntimeConfig_Prompt; VSHelpers.AssignLinkLabelColor(notificationLinkLabel); notificationLabel.Text = Resources.RuntimeConfig_LearnMore; }
public void SetWatermarkThemedColors() { VSHelpers.AssignLinkLabelColor(watermarkLabel); BackColor = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundColorKey); }