style: Link underline color

This commit is contained in:
Christian Pauly 2023-02-14 14:05:18 +01:00
parent e49408e5b0
commit 2d0e7a491e
5 changed files with 11 additions and 0 deletions

View File

@ -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,

View File

@ -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(),
);

View File

@ -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(),

View File

@ -136,6 +136,10 @@ class ChatDetailsView extends StatelessWidget {
.textTheme
.bodyMedium!
.color,
decorationColor: Theme.of(context)
.textTheme
.bodyMedium!
.color,
),
onLinkTap: (url) =>
UrlLauncher(context, url).launchUrl(),

View File

@ -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,