mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-09 08:47:31 +00:00
refactor: use folder add/remove icons in library
Signed-off-by: Blake Leonard <me@blakes.dev>
This commit is contained in:
parent
b293ebbdec
commit
537048b64d
@ -121,4 +121,6 @@ abstract class SpotubeIcons {
|
|||||||
static const monitor = FeatherIcons.monitor;
|
static const monitor = FeatherIcons.monitor;
|
||||||
static const power = FeatherIcons.power;
|
static const power = FeatherIcons.power;
|
||||||
static const bluetooth = FeatherIcons.bluetooth;
|
static const bluetooth = FeatherIcons.bluetooth;
|
||||||
|
static const folderAdd = FeatherIcons.folderPlus;
|
||||||
|
static const folderRemove = FeatherIcons.folderMinus;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,7 +259,7 @@ class UserLocalTracks extends HookConsumerWidget {
|
|||||||
message: context.l10n.add_library_location,
|
message: context.l10n.add_library_location,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
onPressed: addLocalLibraryLocation,
|
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
|
style: Theme.of(context).textTheme.titleLarge
|
||||||
),
|
),
|
||||||
const Expanded(child: SizedBox()),
|
const Expanded(child: SizedBox()),
|
||||||
Tooltip(
|
if (preferences.downloadLocation != location) Tooltip(
|
||||||
message: context.l10n.remove_library_location,
|
message: context.l10n.remove_library_location,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: Icon(SpotubeIcons.trash, color: Colors.red[400]),
|
icon: Icon(SpotubeIcons.folderRemove, color: Colors.red[400]),
|
||||||
onPressed: () => removeLocalLibraryLocation(location),
|
onPressed: () => removeLocalLibraryLocation(location),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user