fixed background color in theme preview

This commit is contained in:
SledDev
2023-09-28 20:15:09 +02:00
parent 8451983163
commit 493adaa5f2

View File

@@ -337,7 +337,8 @@ class _PremiumCustomAccentColorSettingState
0.75 0.75
], ],
colors: [ colors: [
Theme.of(context).colorScheme.background, settings.customBackgroundColor
?? Theme.of(context).colorScheme.background,
isBackgroundDifferent isBackgroundDifferent
? HSVColor.fromColor(Theme.of(context) ? HSVColor.fromColor(Theme.of(context)
.colorScheme .colorScheme