UI fixes and league

This commit is contained in:
Jan Pleterski
2026-11-28 12:22:02 +01:00
parent 2fc741a9f6
commit 258303deb8
118 changed files with 1439 additions and 537 deletions
+7 -1
View File
@@ -15,8 +15,14 @@ void main() {
expect(File(asset!).existsSync(), isTrue, reason: '$asset missing');
}
}
// Every design (picker and holidays) has its screen background, dark and light
for (final style in [...TargetStyle.all, ...TargetStyle.holidays]) {
for (final dark in [true, false]) {
expect(File(style.background(dark)).existsSync(), isTrue, reason: '${style.background(dark)} missing');
}
}
expect(TargetStyle.byId(13), TargetStyle.fallback); // removed skin falls back to the default
expect(TargetStyle.all.length, 6); // the default and five designs
expect(TargetStyle.all.length, 9); // the default and eight designs (a 3 × 3 picker)
expect(TargetStyle.byId(24), TargetStyle.fallback); // a design no longer shipped falls back too
});
}