bug: color seed setting not working (#516)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-03 23:17:18 +08:00
committed by GitHub
parent 9db04a60c2
commit ea7c8caf14
11 changed files with 32 additions and 31 deletions

View File

@@ -22,7 +22,7 @@ class MyApp extends StatelessWidget {
listenable: RNodes.app,
builder: (context, _) {
if (!Stores.setting.useSystemPrimaryColor.fetch()) {
UIs.colorSeed = Color(Stores.setting.primaryColor.fetch());
UIs.colorSeed = Color(Stores.setting.colorSeed.fetch());
return _buildApp(
context,
light: ThemeData(
@@ -88,6 +88,7 @@ class MyApp extends StatelessWidget {
context.setLibL10n();
final appL10n = AppLocalizations.of(context);
if (appL10n != null) l10n = appL10n;
UIs.primaryColor = Theme.of(context).colorScheme.primary;
final intros = _IntroPage.builders;
if (intros.isNotEmpty) {