mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 15:02:21 +02:00
feat(a11y): label controls and improve settings contrast and targets
This commit is contained in:
1 parent
1e73ffea3b
commit
befcd2adec
29 files changed
+470
-276
No files matched your search
@@ -49,9 +49,11 @@ void main() {
|
||||
}
|
||||
|
||||
for (final brightness in Brightness.values) {
|
||||
for (final accent in MornyeAccent.values.where(
|
||||
(accent) => accent != MornyeAccent.red,
|
||||
)) {
|
||||
// Grouped settings cells, where tinted action rows sit.
|
||||
final cell = brightness == Brightness.dark
|
||||
? const Color(0xff1c1c1e)
|
||||
: Colors.white;
|
||||
for (final accent in MornyeAccent.values) {
|
||||
final scheme = MornyeTheme.build(
|
||||
brightness,
|
||||
accent: accent,
|
||||
@@ -61,6 +63,11 @@ void main() {
|
||||
greaterThanOrEqualTo(4.5),
|
||||
reason: '$accent on $brightness',
|
||||
);
|
||||
expect(
|
||||
contrast(scheme.primary, cell),
|
||||
greaterThanOrEqualTo(4.5),
|
||||
reason: '$accent on a $brightness grouped cell',
|
||||
);
|
||||
expect(
|
||||
contrast(scheme.onPrimary, scheme.primary),
|
||||
greaterThanOrEqualTo(4.5),
|
||||
|
||||
Reference in new issue
Block a user