chore: improve readability of text in analytics popups (#2160)

This commit is contained in:
ggurdin 2025-03-17 16:57:10 -04:00 committed by GitHub
parent cfe5a0abf9
commit 6184942387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -73,7 +73,9 @@ class VocabAnalyticsListTileState extends State<VocabAnalyticsListTile> {
maxWidth: maxWidth - padding * 2,
style: TextStyle(
fontSize: 16,
color: widget.constructUse.constructLevel.color(context),
color: Theme.of(context).brightness == Brightness.light
? widget.constructUse.constructLevel.darkColor(context)
: widget.constructUse.constructLevel.color(context),
),
),
),

View file

@ -185,7 +185,10 @@ class MorphFocusWidgetState extends State<MorphFocusWidget> {
onDoubleTap: enterEditMode,
child: MorphTagDisplay(
morphFeature: widget.morphFeature,
textColor: id.constructUses.lemmaCategory.color(context),
textColor: Theme.of(context).brightness ==
Brightness.light
? id.constructUses.lemmaCategory.darkColor(context)
: id.constructUses.lemmaCategory.color(context),
),
),
),