💄 Optimize coloring

This commit is contained in:
2025-12-20 15:08:42 +08:00
parent 7fe03f90a8
commit 3955e7b859

View File

@@ -78,13 +78,17 @@ class LibraryScreen extends HookConsumerWidget {
? AppBar( ? AppBar(
leading: IconButton( leading: IconButton(
icon: const Icon(Symbols.close), icon: const Icon(Symbols.close),
color: Theme.of(context).colorScheme.onPrimary,
onPressed: clearSelection, onPressed: clearSelection,
), ),
title: Text('${selectedTrackIds.value.length} selected'), title: Text(
'${selectedTrackIds.value.length} selected',
).textColor(Theme.of(context).colorScheme.onPrimary),
backgroundColor: Theme.of(context).colorScheme.primary, backgroundColor: Theme.of(context).colorScheme.primary,
actions: [ actions: [
IconButton( IconButton(
icon: const Icon(Symbols.playlist_add), icon: const Icon(Symbols.playlist_add),
color: Theme.of(context).colorScheme.onPrimary,
tooltip: 'Add to Playlist', tooltip: 'Add to Playlist',
onPressed: () { onPressed: () {
_batchAddToPlaylist( _batchAddToPlaylist(
@@ -97,6 +101,7 @@ class LibraryScreen extends HookConsumerWidget {
), ),
IconButton( IconButton(
icon: const Icon(Symbols.delete), icon: const Icon(Symbols.delete),
color: Theme.of(context).colorScheme.onPrimary,
tooltip: 'Delete', tooltip: 'Delete',
onPressed: () { onPressed: () {
_batchDelete( _batchDelete(
@@ -253,14 +258,18 @@ class LibraryScreen extends HookConsumerWidget {
? AppBar( ? AppBar(
leading: IconButton( leading: IconButton(
icon: const Icon(Symbols.close), icon: const Icon(Symbols.close),
color: Theme.of(context).colorScheme.onPrimary,
onPressed: clearSelection, onPressed: clearSelection,
), ),
title: Text('${selectedTrackIds.value.length} selected'), title: Text(
'${selectedTrackIds.value.length} selected',
).textColor(Theme.of(context).colorScheme.onPrimary),
backgroundColor: Theme.of(context).colorScheme.primary, backgroundColor: Theme.of(context).colorScheme.primary,
actions: [ actions: [
IconButton( IconButton(
icon: const Icon(Symbols.playlist_add), icon: const Icon(Symbols.playlist_add),
tooltip: 'Add to Playlist', tooltip: 'Add to Playlist',
color: Theme.of(context).colorScheme.onPrimary,
onPressed: () { onPressed: () {
_batchAddToPlaylist( _batchAddToPlaylist(
context, context,
@@ -273,6 +282,7 @@ class LibraryScreen extends HookConsumerWidget {
IconButton( IconButton(
icon: const Icon(Symbols.delete), icon: const Icon(Symbols.delete),
tooltip: 'Delete', tooltip: 'Delete',
color: Theme.of(context).colorScheme.onPrimary,
onPressed: () { onPressed: () {
_batchDelete( _batchDelete(
context, context,