design: Adjust message button design

This commit is contained in:
krille-chan 2023-07-22 13:09:03 +02:00
parent 4929858ae4
commit b667e22d19
No known key found for this signature in database

View file

@ -99,8 +99,7 @@ class MessageContent extends StatelessWidget {
@override
Widget build(BuildContext context) {
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
final buttonTextColor =
event.senderId == Matrix.of(context).client.userID ? textColor : null;
final buttonTextColor = textColor;
switch (event.type) {
case EventTypes.Message:
case EventTypes.Encrypted:
@ -304,13 +303,13 @@ class _ButtonContent extends StatelessWidget {
@override
Widget build(BuildContext context) {
return OutlinedButton.icon(
return TextButton.icon(
onPressed: onPressed,
icon: icon,
label: Text(label, overflow: TextOverflow.ellipsis),
style: OutlinedButton.styleFrom(
style: TextButton.styleFrom(
foregroundColor: textColor,
backgroundColor: Colors.white.withAlpha(64),
textStyle: const TextStyle(fontWeight: FontWeight.bold),
),
);
}