From 2d0e7a491ef96e4127ce5fc116c12262cbea2f8b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 14 Feb 2023 14:05:18 +0100 Subject: [PATCH] style: Link underline color --- lib/pages/chat/events/html_message.dart | 1 + lib/pages/chat/events/message_content.dart | 2 ++ lib/pages/chat/pinned_events.dart | 3 +++ lib/pages/chat_details/chat_details_view.dart | 4 ++++ lib/pages/story/story_view.dart | 1 + 5 files changed, 11 insertions(+) diff --git a/lib/pages/chat/events/html_message.dart b/lib/pages/chat/events/html_message.dart index f4573a89..29344e49 100644 --- a/lib/pages/chat/events/html_message.dart +++ b/lib/pages/chat/events/html_message.dart @@ -55,6 +55,7 @@ class HtmlMessage extends StatelessWidget { themeData.textTheme.bodyMedium!.copyWith( color: themeData.colorScheme.secondary, decoration: TextDecoration.underline, + decorationColor: themeData.colorScheme.secondary, ), shrinkToFit: true, maxLines: maxLines, diff --git a/lib/pages/chat/events/message_content.dart b/lib/pages/chat/events/message_content.dart index 62bab326..b59f254b 100644 --- a/lib/pages/chat/events/message_content.dart +++ b/lib/pages/chat/events/message_content.dart @@ -154,6 +154,7 @@ class MessageContent extends StatelessWidget { color: textColor.withAlpha(150), fontSize: bigEmotes ? fontSize * 3 : fontSize, decoration: TextDecoration.underline, + decorationColor: textColor.withAlpha(150), ), room: event.room, emoteSize: bigEmotes ? fontSize * 3 : fontSize * 1.5, @@ -243,6 +244,7 @@ class MessageContent extends StatelessWidget { color: textColor.withAlpha(150), fontSize: bigEmotes ? fontSize * 3 : fontSize, decoration: TextDecoration.underline, + decorationColor: textColor.withAlpha(150), ), onLinkTap: (url) => UrlLauncher(context, url).launchUrl(), ); diff --git a/lib/pages/chat/pinned_events.dart b/lib/pages/chat/pinned_events.dart index 9618ead7..e6e0ec78 100644 --- a/lib/pages/chat/pinned_events.dart +++ b/lib/pages/chat/pinned_events.dart @@ -121,6 +121,9 @@ class PinnedEvents extends StatelessWidget { .onSurfaceVariant, fontSize: fontSize, decoration: TextDecoration.underline, + decorationColor: Theme.of(context) + .colorScheme + .onSurfaceVariant, ), onLinkTap: (url) => UrlLauncher(context, url).launchUrl(), diff --git a/lib/pages/chat_details/chat_details_view.dart b/lib/pages/chat_details/chat_details_view.dart index 537a276e..62bd2936 100644 --- a/lib/pages/chat_details/chat_details_view.dart +++ b/lib/pages/chat_details/chat_details_view.dart @@ -136,6 +136,10 @@ class ChatDetailsView extends StatelessWidget { .textTheme .bodyMedium! .color, + decorationColor: Theme.of(context) + .textTheme + .bodyMedium! + .color, ), onLinkTap: (url) => UrlLauncher(context, url).launchUrl(), diff --git a/lib/pages/story/story_view.dart b/lib/pages/story/story_view.dart index f172f930..18725384 100644 --- a/lib/pages/story/story_view.dart +++ b/lib/pages/story/story_view.dart @@ -280,6 +280,7 @@ class StoryView extends StatelessWidget { fontSize: 24, color: Colors.blue.shade50, decoration: TextDecoration.underline, + decorationColor: Colors.blue.shade50, shadows: event.messageType == MessageTypes.Text ? null : textShadows,