private void Theme_Changed(object sender, Microsoft.VisualStudio.PlatformUI.ThemeChangedEventArgs e) { try { Log.Information(nameof(Theme_Changed)); var browserService = _componentModel?.GetService <IBrowserService>(); if (browserService == null) { Log.IsNull(nameof(browserService)); return; } browserService?.ReloadWebView(); } catch (Exception ex) { Log.Error(ex, nameof(Theme_Changed)); } }
/// <summary> /// Responds to the event when Visual Studio theme changed. /// </summary> /// <param name="e">The <see cref="ThemeChangedEventArgs"/> instance containing the event data.</param> void VSColorTheme_ThemeChanged(Microsoft.VisualStudio.PlatformUI.ThemeChangedEventArgs e) { SetColors(); }
private void VSColorTheme_ThemeChanged(Microsoft.VisualStudio.PlatformUI.ThemeChangedEventArgs e) { VSTheme.OnThemeChanged(); }