Ejemplo n.º 1
0
        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();
 }
Ejemplo n.º 3
0
 private void VSColorTheme_ThemeChanged(Microsoft.VisualStudio.PlatformUI.ThemeChangedEventArgs e)
 {
     VSTheme.OnThemeChanged();
 }