mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
feat(appearance): add an optional system font
This commit is contained in:
1 parent
c89601b6dc
commit
9322e54739
12 files changed
+179
-23
No files matched your search
@@ -1109,6 +1109,7 @@ void main() {
|
||||
useAmoled: true,
|
||||
style: AppThemeStyle.mornye,
|
||||
mornyeAccent: MornyeAccent.blue,
|
||||
useSystemFont: true,
|
||||
);
|
||||
|
||||
final decoded = ThemeSettings.fromJson(settings.toJson());
|
||||
@@ -1122,6 +1123,9 @@ void main() {
|
||||
expect(decoded.style, AppThemeStyle.mornye);
|
||||
expect(decoded.mornyeAccent, MornyeAccent.blue);
|
||||
expect(copied.mornyeAccent, MornyeAccent.blue);
|
||||
expect(decoded.useSystemFont, isTrue);
|
||||
expect(copied.useSystemFont, isTrue);
|
||||
expect(ThemeSettings.fromJson({}).useSystemFont, isFalse);
|
||||
expect(ThemeSettings.fromJson({}).mornyeAccent, MornyeAccent.red);
|
||||
expect(
|
||||
ThemeSettings.fromJson({kMornyeAccentKey: 'unknown'}).mornyeAccent,
|
||||
|
||||
Reference in new issue
Block a user