|
82 | 82 | <Setter Property="Margin" Value="0 4"/> |
83 | 83 | </Style> |
84 | 84 |
|
| 85 | + <Style x:Key="CheckoutErrorMessage" TargetType="TextBlock"> |
| 86 | + <Setter Property="Foreground" Value="Red" /> |
| 87 | + </Style> |
| 88 | + |
85 | 89 | <!-- Hyperlink has no Visibility property, sigh. Hack around this by making the text |
86 | 90 | transparent and 1 px in size. --> |
87 | 91 | <Style x:Key="HyperlinkHiddenWhenDisabled" TargetType="Hyperlink"> |
|
200 | 204 |
|
201 | 205 | <!-- Branch checked out and needs pull --> |
202 | 206 | <TextBlock TextWrapping="Wrap"> |
203 | | - <ui:OcticonImage Icon="sync" Foreground="Orange" Margin="0 0 0 -4"/> |
| 207 | + <ui:OcticonImage Icon="alert" Foreground="Orange" Margin="0 0 0 -4"/> |
204 | 208 | <Run>Your local branch is behind by</Run> |
205 | 209 | <Run FontWeight="Bold" Text="{Binding CommitsBehind, StringFormat={}{0} commits.}"/> |
206 | 210 | <Hyperlink Command="{Binding Checkout}" Style="{StaticResource HyperlinkHiddenWhenDisabled}">Update</Hyperlink> |
|
218 | 222 |
|
219 | 223 | <!-- Local branch exists but is not checked out --> |
220 | 224 | <TextBlock TextWrapping="Wrap"> |
| 225 | + <ui:OcticonImage Icon="alert" Foreground="Orange" Margin="0 0 0 -4"/> |
221 | 226 | <Run BaselineAlignment="Top">This branch is not currently checked out.</Run> |
222 | 227 | <Hyperlink Command="{Binding Checkout}" Style="{StaticResource HyperlinkHiddenWhenDisabled}">Switch branch</Hyperlink> |
223 | 228 | <TextBlock.Style> |
|
266 | 271 | </TextBlock> |
267 | 272 |
|
268 | 273 | <!-- Checkout disabled message --> |
269 | | - <TextBlock Margin="0 4" TextWrapping="Wrap"> |
270 | | - <ui:OcticonImage Icon="alert" Foreground="Orange" Margin="0 0 0 -4"/> |
| 274 | + <TextBlock Margin="0 0 0 4" TextWrapping="Wrap"> |
271 | 275 | <Run Text="{Binding CheckoutDisabledMessage}"/> |
272 | 276 | <TextBlock.Style> |
273 | | - <Style TargetType="TextBlock"> |
| 277 | + <Style TargetType="TextBlock" BasedOn="{StaticResource CheckoutErrorMessage}"> |
274 | 278 | <Style.Triggers> |
275 | 279 | <DataTrigger Binding="{Binding CheckoutDisabledMessage}" Value="{x:Null}"> |
276 | 280 | <Setter Property="Visibility" Value="Collapsed" /> |
|
421 | 425 | <HierarchicalDataTemplate DataType="{x:Type vm:PullRequestDirectoryViewModel}" |
422 | 426 | ItemsSource="{Binding Children}"> |
423 | 427 | <StackPanel Orientation="Horizontal"> |
424 | | - <!-- TODO: Use the right icon here --> |
425 | | - <ui:OcticonImage Icon="briefcase" Foreground="{DynamicResource GitHubVsWindowText}"/> |
| 428 | + <ui:OcticonImage Icon="file_directory" Foreground="{DynamicResource GitHubDirectoryIconForeground}" /> |
426 | 429 | <TextBlock Text="{Binding DirectoryName}" Margin="4 2" VerticalAlignment="Center"/> |
427 | 430 | </StackPanel> |
428 | 431 | </HierarchicalDataTemplate> |
|
0 commit comments