Skip to content

Commit 6ad0e69

Browse files
committed
Add tooltips to buttons in Folder Watcher View.
1 parent c24e41a commit 6ad0e69

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

CompactGUI/Views/Components/FolderWatcherCard.xaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<TextBlock Text="{Binding Watcher.LastAnalysed, StringFormat=last analysed {0}, Converter={StaticResource RelativeDateConverter}}" FontSize="14" Foreground="#FFBFC7CE" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="35,-6,35,0" d:Text="last analysed just now"/>
2222
<Button HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,-8,0,0" Command="{Binding RefreshWatchedCommand}" Background="Transparent" Foreground="#FFBFC7CE" Visibility="{Binding RefreshWatchedCommand.IsRunning, Converter={StaticResource BooleanToInverseVisibilityConverter}}">
2323
<ui:FontIcon Glyph="&#xE9F3;" FontSize="14" FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets" />
24+
<Button.ToolTip >
25+
<ToolTip Background="#304257" ToolTipService.InitialShowDelay="100">
26+
<TextBlock Text="Re-analyse all watched folders" TextWrapping="NoWrap" Foreground="#FFBFC7CE" FontSize="12"/>
27+
</ToolTip>
28+
</Button.ToolTip>
2429
</Button>
2530
<ui:ProgressRing IsActive="{Binding RefreshWatchedCommand.IsRunning}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6,-6,0,0" Foreground="#FFBFC7CE" />
2631

@@ -29,7 +34,13 @@
2934
<Run Text="saved" />
3035
</TextBlock>
3136

32-
<Button VerticalAlignment="Top" Content="Add To Watchlist" Background="#A26B8399" Foreground="White" HorizontalAlignment="Right" Margin="0,-26,10,0" Command="{Binding ManuallyAddFolderToWatcherCommand}" />
37+
<Button VerticalAlignment="Top" Content="Add To Watchlist" Background="#A26B8399" Foreground="White" HorizontalAlignment="Right" Margin="0,-26,10,0" Command="{Binding ManuallyAddFolderToWatcherCommand}">
38+
<Button.ToolTip >
39+
<ToolTip Background="#304257" ToolTipService.InitialShowDelay="100">
40+
<TextBlock Text="Add a custom folder to the watchlist" TextWrapping="NoWrap" Foreground="#FFBFC7CE" FontSize="12"/>
41+
</ToolTip>
42+
</Button.ToolTip>
43+
</Button>
3344

3445
<ui:ListView x:Name="uiWatcherListView" Margin="-20,60,-20,0" Padding="10,0,10,0" ItemsSource="{Binding Source = {StaticResource src}}" d:ItemsSource="{Binding Source = {StaticResource dtd}}" KeyboardNavigation.TabNavigation="None" ui:ScrollViewerHelper.AutoHideScrollBars="True" >
3546
<ui:ListView.Background>
@@ -125,6 +136,11 @@
125136

126137
<Button HorizontalAlignment="Right" Command="{Binding ElementName=uiWatcherListView, Path=DataContext.RemoveWatcherCommand}" CommandParameter="{Binding}" Background="#DD6B6B" Foreground="White">
127138
<ui:FontIcon Glyph="&#xE74D;" FontSize="14"/>
139+
<Button.ToolTip >
140+
<ToolTip Background="#304257" ToolTipService.InitialShowDelay="100">
141+
<TextBlock Text="Remove from Watchlist" TextWrapping="NoWrap" Foreground="#FFBFC7CE" FontSize="12"/>
142+
</ToolTip>
143+
</Button.ToolTip>
128144
</Button>
129145

130146
<Button HorizontalAlignment="Right" Margin="0,0,35,0" Command="{Binding ElementName=uiWatcherListView, Path=DataContext.ReCompressWatchedCommand}" CommandParameter="{Binding}" Background="#6B8399" Foreground="White">
@@ -138,6 +154,11 @@
138154
</TransformGroup>
139155
</ui:FontIcon.RenderTransform>
140156
</ui:FontIcon>
157+
<Button.ToolTip >
158+
<ToolTip Background="#304257" ToolTipService.InitialShowDelay="100">
159+
<TextBlock Text="Modify Compression" TextWrapping="NoWrap" Foreground="#FFBFC7CE" FontSize="12"/>
160+
</ToolTip>
161+
</Button.ToolTip>
141162
</Button>
142163
</Grid>
143164

0 commit comments

Comments
 (0)