Merge pull request #4935 from pangeachat/4932-image-mode-placeholders-not-visible-in-dark-mode-on-own-message
fix: set emoji placeholder text colot
This commit is contained in:
commit
fb54bda414
2 changed files with 7 additions and 1 deletions
|
|
@ -451,6 +451,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
overlayController!.onClickOverlayMessageToken(token),
|
||||
constructEmojiNotifier: overlayController!
|
||||
.selectModeController.constructEmojiNotifier,
|
||||
textColor: textColor,
|
||||
),
|
||||
if (renderer.showCenterStyling &&
|
||||
token != null &&
|
||||
|
|
@ -973,6 +974,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
enabled: false,
|
||||
constructEmojiNotifier: overlayController!
|
||||
.selectModeController.constructEmojiNotifier,
|
||||
textColor: textColor,
|
||||
),
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
|
|
|
|||
|
|
@ -15,12 +15,14 @@ class TokenEmojiButton extends StatefulWidget {
|
|||
final PangeaToken? token;
|
||||
final String? targetId;
|
||||
final bool enabled;
|
||||
final Color textColor;
|
||||
|
||||
const TokenEmojiButton({
|
||||
super.key,
|
||||
required this.selectModeNotifier,
|
||||
required this.constructEmojiNotifier,
|
||||
required this.onTap,
|
||||
required this.textColor,
|
||||
this.token,
|
||||
this.targetId,
|
||||
this.enabled = true,
|
||||
|
|
@ -106,7 +108,9 @@ class TokenEmojiButtonState extends State<TokenEmojiButton>
|
|||
final child = widget.enabled
|
||||
? Text(
|
||||
_emoji ?? "-",
|
||||
style: TextStyle(fontSize: buttonSize - 8.0),
|
||||
style: TextStyle(fontSize: buttonSize - 8.0).copyWith(
|
||||
color: widget.textColor,
|
||||
),
|
||||
textScaler: TextScaler.noScaling,
|
||||
)
|
||||
: null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue