Skip to content

Commit

Permalink
added tooltips for updates icons
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfds committed Dec 26, 2024
1 parent acc199a commit b695a42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia.Desktop/Pages/GamePage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Downloads"/>
<i:Icon Foreground="Crimson" IsVisible="{Binding ElementName=DownControl, Path=((vm:DownloadsViewModel)DataContext).HasUpdates}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
<i:Icon Foreground="Crimson" ToolTip.Tip="Updates available" IsVisible="{Binding ElementName=DownControl, Path=((vm:DownloadsViewModel)DataContext).HasUpdates}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
</StackPanel>
</TabItem.Header>

Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Desktop/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Ports"/>
<i:Icon Foreground="Crimson" DataContext="{Binding PortsPageViewModel}" IsVisible="{Binding HasUpdates}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
<i:Icon Foreground="Crimson" ToolTip.Tip="Updates available" DataContext="{Binding PortsPageViewModel}" IsVisible="{Binding HasUpdates}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
</StackPanel>
</TabItem.Header>

Expand All @@ -219,7 +219,7 @@
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="About"/>
<i:Icon Foreground="Crimson" DataContext="{Binding AboutPageViewModel}" IsVisible="{Binding IsUpdateAvailable}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
<i:Icon Foreground="Crimson" ToolTip.Tip="App update available" DataContext="{Binding AboutPageViewModel}" IsVisible="{Binding IsUpdateAvailable}" Margin="5,0,0,0" Value="mdi-alert-decagram" />
</StackPanel>
</TabItem.Header>

Expand Down

0 comments on commit b695a42

Please sign in to comment.