This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree 3 files changed +17
-13
lines changed
GitHub.InlineReviews/Tags
GitHub.VisualStudio.UI/Styles 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
3
3
tools\VsixUtil\vsixutil /install " build\%Configuration% \GitHub.VisualStudio.vsix"
4
4
@ echo Installed %Configuration% build of GitHub for Visual Studio
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections ;
3
3
using System . Collections . Generic ;
4
- using System . ComponentModel ;
5
4
using System . Linq ;
6
5
using System . Reactive . Linq ;
7
6
using System . Threading . Tasks ;
8
7
using GitHub . Extensions ;
9
- using GitHub . InlineReviews . Services ;
10
8
using GitHub . Logging ;
11
9
using GitHub . Models ;
12
10
using GitHub . Services ;
13
- using GitHub . VisualStudio ;
14
11
using Microsoft . VisualStudio . Text ;
15
12
using Microsoft . VisualStudio . Text . Editor ;
16
13
using Microsoft . VisualStudio . Text . Tagging ;
@@ -50,7 +47,7 @@ public InlineCommentTagger(
50
47
this . sessionManager = sessionManager ;
51
48
}
52
49
53
- public bool ShowMargin => file != null ;
50
+ public bool ShowMargin => file ? . Diff ? . Count > 0 ;
54
51
55
52
public event EventHandler < SnapshotSpanEventArgs > TagsChanged ;
56
53
Original file line number Diff line number Diff line change 23
23
<ToggleButton Grid.Column=" 0" Grid.Row=" 0"
24
24
IsChecked =" {Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
25
25
VerticalAlignment =" Stretch"
26
- Width =" 16" >
26
+ Margin =" 0 0 4 0"
27
+ Width =" 10" >
27
28
<ToggleButton .Template>
28
29
<ControlTemplate TargetType =" ToggleButton" >
29
- <Border Background =" Transparent" >
30
+ <Border Background =" Transparent" >
30
31
<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"
32
37
VerticalAlignment =" Center"
33
38
HorizontalAlignment =" Center" />
34
39
</Border >
40
+
35
41
<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 >
39
42
<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 >
41
48
</Trigger >
42
49
</ControlTemplate .Triggers>
43
50
</ControlTemplate >
You can’t perform that action at this time.
0 commit comments