File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 641641 <x : String x : Key =" Text.Preferences.Appearance.Theme" xml : space =" preserve" >Theme</x : String >
642642 <x : String x : Key =" Text.Preferences.Appearance.ThemeOverrides" xml : space =" preserve" >Theme Overrides</x : String >
643643 <x : String x : Key =" Text.Preferences.Appearance.UseAutoHideScrollBars" xml : space =" preserve" >Use auto-hide scrollbars</x : String >
644+ <x : String x : Key =" Text.Preferences.Appearance.EnableHoverViewTracking" xml : space =" preserve" >Enable hover view tracking</x : String >
644645 <x : String x : Key =" Text.Preferences.Appearance.UseFixedTabWidth" xml : space =" preserve" >Use fixed tab width in titlebar</x : String >
645646 <x : String x : Key =" Text.Preferences.Appearance.UseNativeWindowFrame" xml : space =" preserve" >Use native window frame</x : String >
646647 <x : String x : Key =" Text.Preferences.DiffMerge" xml : space =" preserve" >DIFF/MERGE TOOL</x : String >
Original file line number Diff line number Diff line change 645645 <x : String x : Key =" Text.Preferences.Appearance.Theme" xml : space =" preserve" >主题</x : String >
646646 <x : String x : Key =" Text.Preferences.Appearance.ThemeOverrides" xml : space =" preserve" >主题自定义</x : String >
647647 <x : String x : Key =" Text.Preferences.Appearance.UseAutoHideScrollBars" xml : space =" preserve" >允许滚动条自动隐藏</x : String >
648+ <x : String x : Key =" Text.Preferences.Appearance.EnableHoverViewTracking" xml : space =" preserve" >开启悬停视图跟踪</x : String >
648649 <x : String x : Key =" Text.Preferences.Appearance.UseFixedTabWidth" xml : space =" preserve" >主标签使用固定宽度</x : String >
649650 <x : String x : Key =" Text.Preferences.Appearance.UseNativeWindowFrame" xml : space =" preserve" >使用系统默认窗体样式</x : String >
650651 <x : String x : Key =" Text.Preferences.DiffMerge" xml : space =" preserve" >对比/合并工具</x : String >
Original file line number Diff line number Diff line change 645645 <x : String x : Key =" Text.Preferences.Appearance.Theme" xml : space =" preserve" >佈景主題</x : String >
646646 <x : String x : Key =" Text.Preferences.Appearance.ThemeOverrides" xml : space =" preserve" >自訂主題</x : String >
647647 <x : String x : Key =" Text.Preferences.Appearance.UseAutoHideScrollBars" xml : space =" preserve" >允許自動隱藏捲軸</x : String >
648+ <x : String x : Key =" Text.Preferences.Appearance.EnableHoverViewTracking" xml : space =" preserve" >開啟懸停視圖跟蹤</x : String >
648649 <x : String x : Key =" Text.Preferences.Appearance.UseFixedTabWidth" xml : space =" preserve" >使用固定寬度的分頁標籤</x : String >
649650 <x : String x : Key =" Text.Preferences.Appearance.UseNativeWindowFrame" xml : space =" preserve" >使用系統原生預設視窗樣式</x : String >
650651 <x : String x : Key =" Text.Preferences.DiffMerge" xml : space =" preserve" >對比/合併工具</x : String >
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public long HoveredCommitIndex
8080 {
8181 if ( SetProperty ( ref _hoveredCommitIndex , value ) )
8282 {
83- if ( value >= 0 && value < _commits . Count )
83+ if ( Preferences . Instance . EnableHoverViewTracking && value >= 0 && value < _commits . Count )
8484 {
8585 var hoveredIndex = ( int ) value ;
8686 var depth = 1000u ;
Original file line number Diff line number Diff line change @@ -181,6 +181,12 @@ public bool UseAutoHideScrollBars
181181 set => SetProperty ( ref _useAutoHideScrollBars , value ) ;
182182 }
183183
184+ public bool EnableHoverViewTracking
185+ {
186+ get => _enableHoverViewTracking ;
187+ set => SetProperty ( ref _enableHoverViewTracking , value ) ;
188+ }
189+
184190 public bool UseGitHubStyleAvatar
185191 {
186192 get => _useGitHubStyleAvatar ;
@@ -824,6 +830,7 @@ private bool RemoveInvalidRepositoriesRecursive(List<RepositoryNode> collection)
824830 private int _subjectGuideLength = 50 ;
825831 private bool _useFixedTabWidth = true ;
826832 private bool _useAutoHideScrollBars = true ;
833+ private bool _enableHoverViewTracking = true ;
827834 private bool _useGitHubStyleAvatar = true ;
828835 private bool _showAuthorTimeInGraph = false ;
829836 private bool _showChildren = false ;
Original file line number Diff line number Diff line change @@ -241,6 +241,12 @@ protected override void OnPointerMoved(PointerEventArgs e)
241241 if ( DataContext is not ViewModels . Histories vm )
242242 return ;
243243
244+ if ( ! ViewModels . Preferences . Instance . EnableHoverViewTracking )
245+ {
246+ vm . HoveredCommitIndex = - 1 ;
247+ return ;
248+ }
249+
244250 var point = e . GetPosition ( this ) ;
245251 var row = ( this . InputHitTest ( point ) as Visual ) ? . FindAncestorOfType < DataGridRow > ( ) ;
246252 if ( row != null )
Original file line number Diff line number Diff line change 296296 IsChecked =" {Binding UseAutoHideScrollBars, Mode=TwoWay}" />
297297
298298 <CheckBox Grid.Row=" 8" Grid.Column=" 1"
299+ Height =" 32"
300+ Content =" {DynamicResource Text.Preferences.Appearance.EnableHoverViewTracking}"
301+ IsChecked =" {Binding EnableHoverViewTracking, Mode=TwoWay}" />
302+
303+ <CheckBox Grid.Row=" 9" Grid.Column=" 1"
299304 Height =" 32"
300305 Content =" {DynamicResource Text.Preferences.Appearance.UseNativeWindowFrame}"
301306 IsChecked =" {Binding UseSystemWindowFrame, Mode=OneTime}"
You can’t perform that action at this time.
0 commit comments