fix(studio): doctor i18n + light-mode AppBar contrast (v0.33.1)

Two reports:

1. "In Diagnose ist viel nicht übersetzt, wie pending, chain
   etc." The Doctor summary strip (Modules / Approvals / Audit
   / Services tiles) and the modules panel still rendered
   English wire labels: "pending", "chain", "declared",
   "loaded", "empty", "attention", "No pending approvals",
   "No host services declared", and the matching "{n} modules
   · {m} capabilities" / "{n} approvals awaiting review"
   strings.

   Fix: 13 new ARB keys covering the summary tiles, modules
   panel, and services panel; doctor.dart now reads them via
   AppLocalizations. German operators no longer see English
   labels on Diagnose.

2. "Im Light mode ist der kontrast zur überschrift falsch,
   store ist weiß auf weiß." The AppBar title rendered
   white-on-white in light mode.

   Cause: `appBarTheme.titleTextStyle = textTheme.headlineSmall`
   passed a TextStyle built fresh from GoogleFonts.inter(...)
   with `color: null`. Material's "merge foregroundColor at
   draw time" path didn't always populate it — depended on
   build configuration. The colour fell through to whatever
   the surrounding DefaultTextStyle had, which on the
   light-mode AppBar was the surface colour.

   Fix: bake the foreground colour straight into the title
   style via `copyWith(color: scheme.onSurface)`. Also pin
   `iconTheme: IconThemeData(color: scheme.onSurface)` so
   actions-row icons get the same treatment defensively.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-05-08 13:43:17 +02:00
parent de22791e86
commit 22a851b7e2
9 changed files with 319 additions and 19 deletions

View file

@ -1730,6 +1730,102 @@ abstract class AppLocalizations {
/// **'Doctor'**
String get doctorTitle;
/// No description provided for @doctorSummaryModules.
///
/// In en, this message translates to:
/// **'Modules'**
String get doctorSummaryModules;
/// No description provided for @doctorSummaryApprovals.
///
/// In en, this message translates to:
/// **'Approvals'**
String get doctorSummaryApprovals;
/// No description provided for @doctorSummaryAudit.
///
/// In en, this message translates to:
/// **'Audit'**
String get doctorSummaryAudit;
/// No description provided for @doctorSummaryServices.
///
/// In en, this message translates to:
/// **'Services'**
String get doctorSummaryServices;
/// No description provided for @doctorSummaryCapabilities.
///
/// In en, this message translates to:
/// **'{n} capabilities'**
String doctorSummaryCapabilities(int n);
/// No description provided for @doctorSummaryPending.
///
/// In en, this message translates to:
/// **'pending'**
String get doctorSummaryPending;
/// No description provided for @doctorSummaryChain.
///
/// In en, this message translates to:
/// **'{verified}/{total} chain'**
String doctorSummaryChain(int verified, int total);
/// No description provided for @doctorSummaryDeclared.
///
/// In en, this message translates to:
/// **'declared'**
String get doctorSummaryDeclared;
/// No description provided for @doctorModulesPanelSummary.
///
/// In en, this message translates to:
/// **'{n} modules · {m} capabilities'**
String doctorModulesPanelSummary(int n, int m);
/// No description provided for @doctorApprovalsNone.
///
/// In en, this message translates to:
/// **'No pending approvals'**
String get doctorApprovalsNone;
/// No description provided for @doctorApprovalsCount.
///
/// In en, this message translates to:
/// **'{n, plural, =1{1 approval awaiting review} other{{n} approvals awaiting review}}'**
String doctorApprovalsCount(int n);
/// No description provided for @doctorApprovalsAttentionPill.
///
/// In en, this message translates to:
/// **'attention'**
String get doctorApprovalsAttentionPill;
/// No description provided for @doctorServicesEmpty.
///
/// In en, this message translates to:
/// **'No host services declared'**
String get doctorServicesEmpty;
/// No description provided for @doctorServicesEmptyHint.
///
/// In en, this message translates to:
/// **'add to ~/.fai/config.yaml under services:'**
String get doctorServicesEmptyHint;
/// No description provided for @doctorPillLoaded.
///
/// In en, this message translates to:
/// **'loaded'**
String get doctorPillLoaded;
/// No description provided for @doctorPillEmpty.
///
/// In en, this message translates to:
/// **'empty'**
String get doctorPillEmpty;
/// No description provided for @doctorRecheckTooltip.
///
/// In en, this message translates to: