From 737e510977646549ff12e2d41cbe397a6bafabec Mon Sep 17 00:00:00 2001 From: James Harvey <44349936+jmshrv@users.noreply.github.com> Date: Sat, 23 Sep 2023 12:41:38 +0100 Subject: [PATCH] Add tooltips to add/delete download buttons --- lib/components/AlbumScreen/add_download_button.dart | 1 + lib/components/AlbumScreen/delete_download_button.dart | 1 + lib/l10n/app_en.arb | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/components/AlbumScreen/add_download_button.dart b/lib/components/AlbumScreen/add_download_button.dart index a9026fcf9..0a8bd52cf 100644 --- a/lib/components/AlbumScreen/add_download_button.dart +++ b/lib/components/AlbumScreen/add_download_button.dart @@ -27,6 +27,7 @@ class AddDownloadButton extends StatelessWidget { return PopupMenuButton( 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 diff --git a/lib/components/AlbumScreen/delete_download_button.dart b/lib/components/AlbumScreen/delete_download_button.dart index 4e0981f98..49ab814c9 100644 --- a/lib/components/AlbumScreen/delete_download_button.dart +++ b/lib/components/AlbumScreen/delete_download_button.dart @@ -24,6 +24,7 @@ class DeleteDownloadButton extends StatelessWidget { return IconButton( icon: const Icon(Icons.delete), + tooltip: AppLocalizations.of(context)!.deleteDownloadTooltip, onPressed: () { downloadsHelper .deleteDownloads( diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 71b0d3011..36f75444d 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -523,5 +523,7 @@ "example": "AAC" } } - } + }, + "downloadTooltip": "Download", + "deleteDownloadTooltip": "Delete download" } \ No newline at end of file