enhance: add tooltips to various UI elements for better accessibility (#1097)

* enhance: add tooltips to various UI elements for better accessibility

* refactor: simplify user string conversion
This commit is contained in:
Gadfly 2025-03-16 11:23:42 +08:00 committed by GitHub
parent a46e52582f
commit 66517fd4bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 7 deletions

View file

@ -39,7 +39,8 @@
<Grid ColumnDefinitions="16,Auto,Auto,*"
Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}"
Background="Transparent"
DoubleTapped="OnRowDoubleTapped">
DoubleTapped="OnRowDoubleTapped"
ToolTip.Tip="{Binding FullPath}">
<v:ChangeTreeNodeToggleButton Grid.Column="0"
Classes="tree_expander"
Focusable="False"
@ -71,7 +72,10 @@
SelectionChanged="OnRowSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate DataType="m:Change">
<Grid ColumnDefinitions="Auto,Auto,Auto,*" Background="Transparent" DoubleTapped="OnRowDoubleTapped">
<Grid ColumnDefinitions="Auto,Auto,Auto,*"
Background="Transparent"
DoubleTapped="OnRowDoubleTapped"
ToolTip.Tip="{Binding Path}">
<v:ChangeStatusIcon Grid.Column="0"
Width="14" Height="14"
Margin="4,0,0,0"
@ -100,7 +104,10 @@
SelectionChanged="OnRowSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate DataType="m:Change">
<Grid ColumnDefinitions="Auto,Auto,*" Background="Transparent" DoubleTapped="OnRowDoubleTapped">
<Grid ColumnDefinitions="Auto,Auto,*"
Background="Transparent"
DoubleTapped="OnRowDoubleTapped"
ToolTip.Tip="{Binding Path}">
<v:ChangeStatusIcon Grid.Column="0"
Width="14" Height="14"
Margin="4,0,0,0"