feat: Option to use item's primary colors in details screen (#509)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-10-03 13:57:54 +02:00 committed by GitHub
parent 5174bb3a6c
commit 951fc93633
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 335 additions and 235 deletions

View file

@ -113,5 +113,15 @@ List<Widget> buildClientSettingsTheme(BuildContext context, WidgetRef ref) {
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setAmoledBlack(value),
),
),
SettingsListTile(
label: Text(context.localized.itemColorsTitle),
subLabel: Text(context.localized.itemColorsDesc),
onTap: () =>
ref.read(clientSettingsProvider.notifier).setDerivedColorsFromItem(!clientSettings.deriveColorsFromItem),
trailing: Switch(
value: clientSettings.deriveColorsFromItem,
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setDerivedColorsFromItem(value),
),
),
]);
}