UI-Politur: Kontrast, Abstaende, Typografie, Bewegung
Kein Redesign — Schwarz/Rot, 4 Tabs und Lieder/Kategorie bleiben. Grundlage sind die Design-Skills: ui-ux-pro-max (Barrierefreiheit, Touch, Typografie, Bewegung), ui-design/mobile-android (Material 3) und die Token-Disziplin aus Hue. Behobene Maengel (messbar, nicht Geschmack): - Text in Colors.white38 an 17 Stellen = 3,4:1 Kontrast, WCAG verlangt 4,5:1. Ersetzt durch drei benannte Stufen (text1 15,9:1 / text2 8,8:1 / text3 4,9:1). theme_kontrast_test.dart rechnet die Verhaeltnisse bei jedem Lauf nach, statt sie zu behaupten. - SubTabs waren ~38 dp hoch (Material 3 verlangt 48), ohne Ripple und ohne Uebergang. Jetzt 48 dp, InkWell, AnimatedContainer, und die Auswahl wird Vorlesehilfen als Zustand gemeldet (Semantics.selected). - mini_player.dart: Expanded UM eine feste Hoehe herum — zwei widerspruechliche Angaben. Entschaerft. - Emoji in Bedienelementen der Einstellungen (jeweils neben einem echten Icon) entfernt. Neu in shared/theme.dart: MeloSpace (8er-Raster), MeloRadius, MeloMotion, Farbrollen text1/2/3 + border + hairline, minTouchTarget, vollstaendiges textTheme (7 Stufen) und Themes fuer Listen, Sheets, Snackbars, Fortschritt, Trenner. 318 Tests gruen (23 neue, 1 uebersprungen), flutter analyze ohne Befund. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FpPu4nuKjKKeX1RpdDeX81
This commit is contained in:
co-authored by
Claude Opus 5
parent
2df85e650e
commit
bc861f6087
@@ -62,12 +62,12 @@ class SongDetailSheet extends StatelessWidget {
|
||||
fontSize: 18, fontWeight: FontWeight.w700)),
|
||||
const SizedBox(height: 4),
|
||||
Text(song.artist ?? 'Unbekannter Künstler',
|
||||
style: const TextStyle(color: Colors.white70)),
|
||||
style: const TextStyle(color: MeloTheme.text2)),
|
||||
if (song.album != null) ...[
|
||||
const SizedBox(height: 2),
|
||||
Text(song.album!,
|
||||
style: const TextStyle(
|
||||
color: Colors.white38, fontSize: 12)),
|
||||
color: MeloTheme.text3, fontSize: 12)),
|
||||
],
|
||||
],
|
||||
),
|
||||
@@ -89,7 +89,7 @@ class SongDetailSheet extends StatelessWidget {
|
||||
),
|
||||
if (names.isEmpty)
|
||||
const Text('Keine Kategorie',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 13))
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 13))
|
||||
else
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
@@ -143,7 +143,7 @@ class _ExpertSection extends StatelessWidget {
|
||||
title: const Text('Expertenmodus',
|
||||
style: TextStyle(fontWeight: FontWeight.w600)),
|
||||
subtitle: const Text('Weitere Metadaten',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 12)),
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 12)),
|
||||
children: [
|
||||
_Row('Titel', song.title),
|
||||
_Row('Künstler', song.artist ?? '—'),
|
||||
@@ -246,10 +246,10 @@ class _OnlineLookupState extends State<_OnlineLookup> {
|
||||
),
|
||||
if (vorschlaege != null && vorschlaege.isEmpty)
|
||||
const Text('Nichts gefunden',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 13)),
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 13)),
|
||||
if (vorschlaege != null && vorschlaege.isNotEmpty) ...[
|
||||
const Text('Tippen übernimmt Titel, Künstler und Album',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 12)),
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 12)),
|
||||
for (final vorschlag in vorschlaege)
|
||||
ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
@@ -260,7 +260,7 @@ class _OnlineLookupState extends State<_OnlineLookup> {
|
||||
[vorschlag.kuenstler, vorschlag.album]
|
||||
.where((t) => t.isNotEmpty)
|
||||
.join(' — '),
|
||||
style: const TextStyle(color: Colors.white38, fontSize: 12),
|
||||
style: const TextStyle(color: MeloTheme.text3, fontSize: 12),
|
||||
),
|
||||
onTap: () => _uebernehmen(vorschlag),
|
||||
),
|
||||
@@ -285,7 +285,7 @@ class _Row extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 110,
|
||||
child: Text(label,
|
||||
style: const TextStyle(color: Colors.white38, fontSize: 13)),
|
||||
style: const TextStyle(color: MeloTheme.text3, fontSize: 13)),
|
||||
),
|
||||
Expanded(
|
||||
child: Text(value, style: const TextStyle(fontSize: 13)),
|
||||
@@ -368,12 +368,12 @@ class _CategoryEditorState extends State<_CategoryEditor> {
|
||||
children: [
|
||||
const Text(
|
||||
'Die erste Kategorie liefert das Coverbild.',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 12),
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 12),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
if (_names.isEmpty)
|
||||
const Text('Noch keine Kategorie',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 13))
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 13))
|
||||
else
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
@@ -399,7 +399,7 @@ class _CategoryEditorState extends State<_CategoryEditor> {
|
||||
if (offen.isNotEmpty) ...[
|
||||
const SizedBox(height: 12),
|
||||
const Text('Bereits vergeben',
|
||||
style: TextStyle(color: Colors.white38, fontSize: 12)),
|
||||
style: TextStyle(color: MeloTheme.text3, fontSize: 12)),
|
||||
const SizedBox(height: 4),
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
|
||||
Reference in New Issue
Block a user