Merge pull request #3151 from pangeachat/phonetic-audio-color

Phonetic audio color visibility
This commit is contained in:
ggurdin 2025-06-18 15:57:47 -04:00 committed by GitHub
commit dc1b20db01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -17,6 +17,7 @@ class PhoneticTranscriptionWidget extends StatefulWidget {
final LanguageModel textLanguage;
final TextStyle? style;
final double? iconSize;
final Color? iconColor;
const PhoneticTranscriptionWidget({
super.key,
@ -24,6 +25,7 @@ class PhoneticTranscriptionWidget extends StatefulWidget {
required this.textLanguage,
this.style,
this.iconSize,
this.iconColor,
});
@override
@ -166,9 +168,8 @@ class _PhoneticTranscriptionWidgetState
child: Icon(
_isPlaying ? Icons.pause_outlined : Icons.volume_up,
size: widget.iconSize ?? 24,
color: _isPlaying
? Theme.of(context).colorScheme.primary
: Theme.of(context).iconTheme.color,
color:
widget.iconColor ?? Theme.of(context).iconTheme.color,
),
),
],

View file

@ -199,6 +199,7 @@ class OverlayMessage extends StatelessWidget {
event,
textColor,
),
iconColor: textColor,
),
],
),