This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-13
lines changed
GitHub.InlineReviews/Tags
GitHub.VisualStudio.UI/Styles Expand file tree Collapse file tree 3 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1- Configuration=%1
2- @ set path = %cd% \tools\VsixUtil; %path%
1+ @ set Configuration = %1
2+ @ if " %Configuration% " == " " echo Please specify Debug or Release
33tools\VsixUtil\vsixutil /install " build\%Configuration% \GitHub.VisualStudio.vsix"
44@ echo Installed %Configuration% build of GitHub for Visual Studio
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections ;
33using System . Collections . Generic ;
4- using System . ComponentModel ;
54using System . Linq ;
65using System . Reactive . Linq ;
76using System . Threading . Tasks ;
87using GitHub . Extensions ;
9- using GitHub . InlineReviews . Services ;
108using GitHub . Logging ;
119using GitHub . Models ;
1210using GitHub . Services ;
13- using GitHub . VisualStudio ;
1411using Microsoft . VisualStudio . Text ;
1512using Microsoft . VisualStudio . Text . Editor ;
1613using Microsoft . VisualStudio . Text . Tagging ;
@@ -50,7 +47,7 @@ public InlineCommentTagger(
5047 this . sessionManager = sessionManager ;
5148 }
5249
53- public bool ShowMargin => file != null ;
50+ public bool ShowMargin => file ? . Diff ? . Count > 0 ;
5451
5552 public event EventHandler < SnapshotSpanEventArgs > TagsChanged ;
5653
Original file line number Diff line number Diff line change 2323 <ToggleButton Grid.Column=" 0" Grid.Row=" 0"
2424 IsChecked =" {Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
2525 VerticalAlignment =" Stretch"
26- Width =" 16" >
26+ Margin =" 0 0 4 0"
27+ Width =" 10" >
2728 <ToggleButton .Template>
2829 <ControlTemplate TargetType =" ToggleButton" >
29- <Border Background =" Transparent" >
30+ <Border Background =" Transparent" >
3031 <Path Name =" Arrow"
31- Fill =" {TemplateBinding Foreground}"
32+ Fill =" {DynamicResource VsBrush.WindowText}"
33+ Height =" 7"
34+ Width =" 7"
35+ Stretch =" UniformToFill"
36+ Data =" M7 1l-.025 5H2z"
3237 VerticalAlignment =" Center"
3338 HorizontalAlignment =" Center" />
3439 </Border >
40+
3541 <ControlTemplate .Triggers>
36- <Trigger Property =" IsChecked" Value =" True" >
37- <Setter TargetName =" Arrow" Property =" Data" Value =" M 0 0 L 4 4 L 8 0 Z" />
38- </Trigger >
3942 <Trigger Property =" IsChecked" Value =" False" >
40- <Setter TargetName =" Arrow" Property =" Data" Value =" M 0 4 L 4 0 L 8 4 Z" />
43+ <Setter TargetName =" Arrow" Property =" LayoutTransform" >
44+ <Setter .Value>
45+ <RotateTransform Angle =" -45" />
46+ </Setter .Value>
47+ </Setter >
4148 </Trigger >
4249 </ControlTemplate .Triggers>
4350 </ControlTemplate >
You can’t perform that action at this time.
0 commit comments