mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
feature: add a button to open current revision file with default editor in FileHistories
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
df7375313e
commit
a8da8c09ac
3 changed files with 44 additions and 9 deletions
|
@ -139,7 +139,7 @@
|
|||
<Border Grid.Row="0"
|
||||
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border2}"
|
||||
Background="{DynamicResource Brush.Window}">
|
||||
<Grid ColumnDefinitions="Auto,*,Auto">
|
||||
<Grid ColumnDefinitions="Auto,*,Auto,Auto">
|
||||
<Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.File}" Margin="8,0,0,0"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Classes="primary"
|
||||
|
@ -161,6 +161,15 @@
|
|||
</ToggleButton.IsVisible>
|
||||
<Path Width="13" Height="13" Data="{StaticResource Icons.SyntaxHighlight}" Margin="0,3,0,0"/>
|
||||
</ToggleButton>
|
||||
<Button Grid.Column="3"
|
||||
Classes="icon_button"
|
||||
Width="28"
|
||||
Background="Transparent"
|
||||
Click="OnOpenFileWithDefaultEditor"
|
||||
IsVisible="{Binding CanOpenWithDefaultEditor, Mode=OneWay}"
|
||||
ToolTip.Tip="{DynamicResource Text.OpenWith}">
|
||||
<Path Width="12" Height="12" Data="{StaticResource Icons.OpenWith}"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue