void OnThemeChange(ThemeChangedEventArgs e)
 {
     var uri = new Uri(baseThemeUri + "Theme" + currentTheme + ".xaml");
     ResourceDictionary ret;
     if (resourceDicts.TryGetValue(uri, out ret))
         MergedDictionaries.Remove(ret);
     currentTheme = Colors.DetectTheme();
     Source = uri;
 }
示例#2
0
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     ReloadColors();
     if (_themeChangedAction != null)
     {
         _themeChangedAction();
     }
 }
 private void VSColorThemeChanged(ThemeChangedEventArgs e)
 {
     UpdateHeghlighting();
 }
示例#4
0
 static void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     CalculateTheme();
 }
示例#5
0
 private void OnColorThemeChanged(ThemeChangedEventArgs e) => SetThemeColors();
示例#6
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     RefreshSearchResults();
     RefreshComboBox();
 }
		static void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
		{
			CalculateTheme();
		}
 void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     SetDefaultColors();
 }
示例#9
0
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     // Wait until things have settled down from the theme change, since we will potentially be changing theme colors.
     VsTaskLibraryHelper.CreateAndStartTask(VsTaskLibraryHelper.ServiceInstance, VsTaskRunContext.UIThreadIdlePriority, UpdateThemeColors);
 }
示例#10
0
 private void ThemeManager_ThemeChanged(object?sender, ThemeChangedEventArgs e)
 => SetDefaultIconColors();
示例#11
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     iconBarMargin.InvalidateVisual();
 }
示例#12
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     vmExceptions.Value.RefreshThemeFields();
 }
示例#13
0
        private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
        {
            Update();

            ColorsChanged?.Invoke();
        }
示例#14
0
 private void OnThemeManagerThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     Rebuild();
 }
示例#15
0
 private void UpdateTheme(ThemeChangedEventArgs e)
 {
     _classificationColorManager.UpdateColors();
 }
 private void OnColorThemeChanged(ThemeChangedEventArgs e) {
     SetThemeColors();
 }
示例#17
0
 /// <summary>
 /// This event handler is called when the Visual Studio theme changes and raise the property change
 /// notification so that the colors are updated in any controls that use them.
 /// </summary>
 /// <param name="e">The event arguments</param>
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     this.OnPropertyChanged(null);
 }
示例#18
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e) => RefreshToolBar();
        private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
        {
            SetTreeControlThemedColors();

            _containerControl.SetWatermarkThemedColors();
            _containerControl.SetToolbarThemedColors();

            // force the tree header to re-theme
            NativeMethods.PostMessage(_treeControl.Handle, e.Message, IntPtr.Zero, IntPtr.Zero);
        }
 /// <summary>
 ///     Handle updates to VS theme
 /// </summary>
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     UpdateTheme(CurrentDesigner);
 }
 void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     SetDefaultColors();
 }
示例#22
0
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     m_colors.Update();
     UpdateItems(false);
 }
示例#23
0
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 => QueueColorSchemeUpdate();
 void OnThemeChange(ThemeChangedEventArgs e)
 {
     base.Source = GetCurrentThemeUri();
 }
示例#25
0
 void ThemeService_ThemeChanged(object sender, ThemeChangedEventArgs e) => UpdateIsInContrastMode();
 private void ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     this.ChangeTheme(e.Theme);
 }
示例#27
0
 private void OnThemeChanged(object target, ThemeChangedEventArgs args)
 {
     ThemeChangedEvent?.Invoke(null, new ThemeChangeEventArgs {
         CurrentTheme = args.ThemeId
     });
 }
 private void ThemeManagerIsThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     this.Invoke(this.HandleThemeChange);
 }
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     m_colors.Update();
     Graphics graphics = Graphics.FromImage(m_emptyBitmap);
     graphics.Clear(m_colors.ClearColor);
     UpdateItems();
 }
示例#30
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e) => RefreshNodes();
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     m_colors.Update();
     UpdateItems();
 }
示例#32
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     scriptControlVM.RefreshThemeFields();
 }
示例#33
0
 private void OnThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     SetThemeColors(e.NewTheme);
 }
示例#34
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     vmCallStack.RefreshThemeFields();
 }
        void OnThemeChanged(ThemeChangedEventArgs e) {

            UpdateImageList();

            SetActiveSelection(TaskComboIndex);
            SetActiveSelection(ProjectComboIndex);
        }
 #pragma warning disable VSTHRD100
 private async void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e) => await UpdateDocumentAsync(true);
 /// <summary>
 ///     Handle updates to VS theme
 /// </summary>
 private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
 {
     UpdateTheme(CurrentDesigner);
 }
示例#38
0
 private void Current_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     ResetTheme();
 }
 void OnThemeChanged(ThemeChangedEventArgs e)
 {
     Icon = GetDrawingForIcon(GetBrushForIcon());
 }
示例#40
0
 void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e) => vmLocals.RefreshThemeFields();
示例#41
0
 private void SkinManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
 {
     if (e.Product == Product.Common)
         UpdateTextColor();
 }
示例#42
0
 private void StaticUpdater_OnThemeChangedEvent(object sender, ThemeChangedEventArgs e)
 {
     ThemeHelpers.UpdateTheme(e.Theme);
 }