refactor: use folder add/remove icons in library

Signed-off-by: Blake Leonard <me@blakes.dev>
This commit is contained in:
Blake Leonard 2024-05-06 16:02:41 -04:00
parent b293ebbdec
commit 537048b64d
No known key found for this signature in database
GPG Key ID: 3B1965C22D07D9F6
2 changed files with 5 additions and 3 deletions

View File

@ -121,4 +121,6 @@ abstract class SpotubeIcons {
static const monitor = FeatherIcons.monitor;
static const power = FeatherIcons.power;
static const bluetooth = FeatherIcons.bluetooth;
static const folderAdd = FeatherIcons.folderPlus;
static const folderRemove = FeatherIcons.folderMinus;
}

View File

@ -259,7 +259,7 @@ class UserLocalTracks extends HookConsumerWidget {
message: context.l10n.add_library_location,
child: IconButton(
onPressed: addLocalLibraryLocation,
icon: const Icon(SpotubeIcons.folder), // TODO: use a "folder add" icon
icon: const Icon(SpotubeIcons.folderAdd), // TODO: use a "folder add" icon
),
),
],
@ -302,10 +302,10 @@ class UserLocalTracks extends HookConsumerWidget {
style: Theme.of(context).textTheme.titleLarge
),
const Expanded(child: SizedBox()),
Tooltip(
if (preferences.downloadLocation != location) Tooltip(
message: context.l10n.remove_library_location,
child: IconButton(
icon: Icon(SpotubeIcons.trash, color: Colors.red[400]),
icon: Icon(SpotubeIcons.folderRemove, color: Colors.red[400]),
onPressed: () => removeLocalLibraryLocation(location),
),
),