Skip to content

Commit

Permalink
Add tooltips to add/delete download buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Sep 23, 2023
1 parent e8cf907 commit 737e510
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/components/AlbumScreen/add_download_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AddDownloadButton extends StatelessWidget {

return PopupMenuButton<DownloadChoice>(
icon: const Icon(Icons.file_download),
tooltip: AppLocalizations.of(context)!.downloadTooltip,
enabled: !FinampSettingsHelper.finampSettings.isOffline,
itemBuilder: (context) {
// To get the original file sizes, we just count up the given sizes
Expand Down
1 change: 1 addition & 0 deletions lib/components/AlbumScreen/delete_download_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class DeleteDownloadButton extends StatelessWidget {

return IconButton(
icon: const Icon(Icons.delete),
tooltip: AppLocalizations.of(context)!.deleteDownloadTooltip,
onPressed: () {
downloadsHelper
.deleteDownloads(
Expand Down
4 changes: 3 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -523,5 +523,7 @@
"example": "AAC"
}
}
}
},
"downloadTooltip": "Download",
"deleteDownloadTooltip": "Delete download"
}

0 comments on commit 737e510

Please sign in to comment.