Merge pull request #4922 from pangeachat/grammar-practice-background

Add background to make dark mode icon stand out in own message grammar practice
This commit is contained in:
ggurdin 2025-12-22 13:46:42 -05:00 committed by GitHub
commit 65c6c2af95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -283,9 +283,20 @@ class _NoActivityContentButton extends StatelessWidget {
child: SizedBox(
width: width,
child: Center(
child: MorphIcon(
morphFeature: morphFeature,
morphTag: morphTag.lemma,
child: CircleAvatar(
radius: width / 2,
backgroundColor:
Theme.of(context).brightness != Brightness.light
? Theme.of(context).colorScheme.surface.withAlpha(100)
: null,
child: Padding(
padding: const EdgeInsets.all(4.0),
child: MorphIcon(
morphFeature: morphFeature,
morphTag: morphTag.lemma,
size: Size.fromWidth(width - 8.0),
),
),
),
),
),