feat: show tooltip if git version too low

This commit is contained in:
Gadfly 2024-05-29 17:00:17 +08:00
parent 0b09d210be
commit 2f7ef1ef2b
5 changed files with 37 additions and 4 deletions

View file

@ -251,8 +251,13 @@
Text="{DynamicResource Text.Preference.Git.Version}"
HorizontalAlignment="Right"
Margin="0,0,16,0"/>
<TextBlock Grid.Row="1" Grid.Column="1"
x:Name="txtVersion"/>
<Grid Grid.Row="1" Grid.Column="1" ColumnDefinitions="Auto,Auto">
<TextBlock Grid.Column="0" Text="{Binding #me.GitVersion, Mode=TwoWay}"/>
<Grid Grid.Column="1" ToolTip.Tip="{DynamicResource Text.Preference.Git.VersionUnderRecommend}" HorizontalAlignment="Left"
Background="Transparent" IsVisible="{Binding #me.GitVersion, Converter={x:Static c:StringConverters.UnderRecommendGitVersion}}">
<Path Width="14" Height="14" Margin="10,0,0,0" Data="{StaticResource Icons.Error}" Fill="Red"/>
</Grid>
</Grid>
<Border Grid.Row="2" Grid.Column="0"
Height="32"