migrate dynamic theme

This commit is contained in:
shenlong-tanwen
2026-05-03 21:34:42 +07:00
parent 68a718fab4
commit ca95fbb47d
8 changed files with 38 additions and 26 deletions
@@ -101,7 +101,11 @@ extension<T extends Object> on MetadataDomain<T> {
switch (this) {
case .appConfig:
repo._appConfig = .new(
theme: .new(mode: repo._read(.themeMode), primaryColor: repo._read(.primaryColor)),
theme: .new(
mode: repo._read(.themeMode),
primaryColor: repo._read(.primaryColor),
dynamicTheme: repo._read(.dynamicTheme),
),
);
case .systemConfig:
repo._systemConfig = .new(logLevel: repo._read(.logLevel));