design: Adjust message button design

pull/465/head
krille-chan 2 years ago
parent 4929858ae4
commit b667e22d19
No known key found for this signature in database

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

Loading…
Cancel
Save