mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
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:
parent
5174bb3a6c
commit
951fc93633
9 changed files with 335 additions and 235 deletions
|
|
@ -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),
|
||||
),
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue