mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-29 16:14:59 +00:00
ux: tooltip of commit signing status icon
* do NOT show signer if it is not available * new tooltip style Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
4e87b25765
commit
195325187d
3 changed files with 23 additions and 10 deletions
|
@ -81,7 +81,20 @@
|
|||
|
||||
<ContentControl.DataTemplates>
|
||||
<DataTemplate DataType="m:CommitSignInfo">
|
||||
<Border Width="24" Background="Transparent" ToolTip.Tip="{Binding ToolTip}">
|
||||
<Border Width="24" Background="Transparent">
|
||||
<ToolTip.Tip>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<TextBlock Margin="0,0,0,12" Text="{Binding ToolTip}"/>
|
||||
<TextBlock Margin="0,0,0,2" IsVisible="{Binding Signer, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
||||
<Run Text="Signer:"/>
|
||||
<Run Text="{Binding Signer}"/>
|
||||
</TextBlock>
|
||||
<TextBlock>
|
||||
<Run Text="KEY:"/>
|
||||
<Run Text="{Binding Key}"/>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</ToolTip.Tip>
|
||||
<Path Width="14" Height="14" Data="{StaticResource Icons.Verified}" Fill="{Binding Brush}"/>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue