@@ -22,8 +22,9 @@ public static class CommitInfoViewFactory
2222
2323 static bool _firstMouseMoveFired = false ;
2424 static bool _isDetailsVisible = false ;
25+ static bool _isDetailsEnabled = false ;
2526 static IAdornmentLayer _adornmentLayer ;
26-
27+
2728 private static VSGitBlamePackage _package ;
2829 private static CommitInfoViewOptions _options ;
2930
@@ -61,17 +62,17 @@ private static void ApplySettings()
6162 if ( _options . SummaryFontColor != Color . Transparent )
6263 {
6364 _summaryView . Foreground = new SolidColorBrush ( System . Windows . Media . Color . FromArgb (
64- _options . SummaryFontColor . A ,
65- _options . SummaryFontColor . R ,
66- _options . SummaryFontColor . G ,
65+ _options . SummaryFontColor . A ,
66+ _options . SummaryFontColor . R ,
67+ _options . SummaryFontColor . G ,
6768 _options . SummaryFontColor . B ) ) ;
6869 }
6970 else
7071 {
7172 // Use theme detection if no specific color is set
7273 var backgroundColor = VSColorTheme . GetThemedColor ( EnvironmentColors . ToolWindowBackgroundColorKey ) ;
73- _summaryView . Foreground = backgroundColor . GetBrightness ( ) > 0.5 ?
74- Brushes . DarkBlue :
74+ _summaryView . Foreground = backgroundColor . GetBrightness ( ) > 0.5 ?
75+ Brushes . DarkBlue :
7576 Brushes . LightGray ;
7677 }
7778 }
@@ -87,6 +88,7 @@ private static void ApplySettings()
8788 {
8889 // Apply background color setting
8990 _detailsViewContainer . Background = _options . GetDetailsBackgroundBrush ( ) ;
91+ _isDetailsEnabled = _options . DetailsVisibility ;
9092 }
9193 }
9294
@@ -156,8 +158,11 @@ static CommitInfoViewFactory()
156158 if ( _isDetailsVisible )
157159 return ;
158160
159- _detailsViewContainer . Visibility = Visibility . Visible ;
160- _isDetailsVisible = true ;
161+ if ( _isDetailsEnabled )
162+ {
163+ _detailsViewContainer . Visibility = Visibility . Visible ;
164+ _isDetailsVisible = true ;
165+ }
161166 } ;
162167
163168 rootPanel . MouseLeave += ( sender , e ) =>
0 commit comments