|
35 | 35 | <!-- Toolbar Buttons -->
|
36 | 36 | <StackPanel Grid.Column="3" Margin="8,0,0,0" Orientation="Horizontal" VerticalAlignment="Center">
|
37 | 37 | <Button Classes="icon_button"
|
38 |
| - Width="32" |
39 |
| - Command="{Binding PrevChange}" |
| 38 | + Width="28" |
| 39 | + Click="OnGotoPrevChange" |
40 | 40 | IsVisible="{Binding IsTextDiff}"
|
41 | 41 | ToolTip.Tip="{DynamicResource Text.Diff.Prev}">
|
42 |
| - <Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Diff.Prev}"/> |
| 42 | + <Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Up}"/> |
43 | 43 | </Button>
|
| 44 | + |
44 | 45 | <Button Classes="icon_button"
|
45 |
| - Width="32" |
46 |
| - Command="{Binding NextChange}" |
| 46 | + Width="28" |
| 47 | + Click="OnGotoNextChange" |
47 | 48 | IsVisible="{Binding IsTextDiff}"
|
48 | 49 | ToolTip.Tip="{DynamicResource Text.Diff.Next}">
|
49 |
| - <Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Diff.Next}"/> |
| 50 | + <Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Down}"/> |
50 | 51 | </Button>
|
| 52 | + |
51 | 53 | <Button Classes="icon_button"
|
52 |
| - Width="32" |
| 54 | + Width="28" |
53 | 55 | Command="{Binding IncrUnified}"
|
54 | 56 | IsVisible="{Binding IsTextDiff}"
|
55 | 57 | ToolTip.Tip="{DynamicResource Text.Diff.VisualLines.Incr}">
|
|
60 | 62 | </Button>
|
61 | 63 |
|
62 | 64 | <Button Classes="icon_button"
|
63 |
| - Width="32" |
| 65 | + Width="28" |
64 | 66 | Command="{Binding DecrUnified}"
|
65 | 67 | IsVisible="{Binding IsTextDiff}"
|
66 | 68 | ToolTip.Tip="{DynamicResource Text.Diff.VisualLines.Decr}">
|
|
74 | 76 | </Button>
|
75 | 77 |
|
76 | 78 | <ToggleButton Classes="line_path"
|
77 |
| - Width="32" Height="18" |
78 |
| - Background="Transparent" |
79 |
| - Padding="9,6" |
| 79 | + Width="28" |
80 | 80 | Command="{Binding ToggleFullTextDiff}"
|
81 | 81 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseFullTextDiff, Mode=OneWay}"
|
82 | 82 | IsVisible="{Binding IsTextDiff}"
|
|
85 | 85 | </ToggleButton>
|
86 | 86 |
|
87 | 87 | <ToggleButton Classes="line_path"
|
88 |
| - Width="32" Height="18" |
| 88 | + Width="28" |
89 | 89 | Background="Transparent"
|
90 |
| - Padding="9,6" |
91 | 90 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseSyntaxHighlighting, Mode=TwoWay}"
|
92 | 91 | IsVisible="{Binding IsTextDiff}"
|
93 | 92 | ToolTip.Tip="{DynamicResource Text.Diff.SyntaxHighlight}">
|
94 | 93 | <Path Width="13" Height="13" Data="{StaticResource Icons.SyntaxHighlight}" Margin="0,3,0,0"/>
|
95 | 94 | </ToggleButton>
|
96 | 95 |
|
97 | 96 | <ToggleButton Classes="line_path"
|
98 |
| - Width="32" Height="18" |
99 |
| - Background="Transparent" |
100 |
| - Padding="9,6" |
| 97 | + Width="28" |
101 | 98 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=EnableDiffViewWordWrap, Mode=TwoWay}"
|
102 | 99 | ToolTip.Tip="{DynamicResource Text.Diff.ToggleWordWrap}">
|
103 | 100 | <ToggleButton.IsVisible>
|
|
111 | 108 | </ToggleButton>
|
112 | 109 |
|
113 | 110 | <ToggleButton Classes="line_path"
|
114 |
| - Width="32" |
| 111 | + Width="28" |
115 | 112 | IsChecked="{Binding IgnoreWhitespace, Mode=TwoWay}"
|
116 | 113 | ToolTip.Tip="{DynamicResource Text.Diff.IgnoreWhitespace}">
|
117 | 114 | <Path Width="14" Height="14" Stretch="Uniform" Data="{StaticResource Icons.Whitespace}"/>
|
118 | 115 | </ToggleButton>
|
119 | 116 |
|
120 | 117 | <ToggleButton Classes="line_path"
|
121 |
| - Width="32" |
| 118 | + Width="28" |
122 | 119 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=ShowHiddenSymbolsInDiffView, Mode=TwoWay}"
|
123 | 120 | IsVisible="{Binding IsTextDiff}"
|
124 | 121 | ToolTip.Tip="{DynamicResource Text.Diff.ShowHiddenSymbols}">
|
125 | 122 | <Path Width="11" Height="11" Stretch="Uniform" Data="{StaticResource Icons.HiddenSymbol}" Margin="0,1,0,0"/>
|
126 | 123 | </ToggleButton>
|
127 | 124 |
|
128 | 125 | <ToggleButton Classes="line_path"
|
129 |
| - Width="32" Height="18" |
130 |
| - Background="Transparent" |
131 |
| - Padding="9,6" |
| 126 | + Width="28" Height="18" |
132 | 127 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseSideBySideDiff, Mode=TwoWay}"
|
133 | 128 | IsVisible="{Binding IsTextDiff}"
|
134 | 129 | ToolTip.Tip="{DynamicResource Text.Diff.SideBySide}">
|
135 | 130 | <Path Width="12" Height="12" Data="{StaticResource Icons.LayoutHorizontal}" Margin="0,2,0,0"/>
|
136 | 131 | </ToggleButton>
|
137 | 132 |
|
138 |
| - <Button Classes="icon_button" Width="32" Command="{Binding OpenExternalMergeTool}" ToolTip.Tip="{DynamicResource Text.Diff.UseMerger}"> |
| 133 | + <Button Classes="icon_button" Width="28" Command="{Binding OpenExternalMergeTool}" ToolTip.Tip="{DynamicResource Text.Diff.UseMerger}"> |
139 | 134 | <Path Width="12" Height="12" Stretch="Uniform" Data="{StaticResource Icons.OpenWith}"/>
|
140 | 135 | </Button>
|
141 | 136 | </StackPanel>
|
|
0 commit comments