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( themeData.textTheme.bodyMedium!.copyWith(
color: themeData.colorScheme.secondary, color: themeData.colorScheme.secondary,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: themeData.colorScheme.secondary,
), ),
shrinkToFit: true, shrinkToFit: true,
maxLines: maxLines, maxLines: maxLines,

View File

@ -154,6 +154,7 @@ class MessageContent extends StatelessWidget {
color: textColor.withAlpha(150), color: textColor.withAlpha(150),
fontSize: bigEmotes ? fontSize * 3 : fontSize, fontSize: bigEmotes ? fontSize * 3 : fontSize,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: textColor.withAlpha(150),
), ),
room: event.room, room: event.room,
emoteSize: bigEmotes ? fontSize * 3 : fontSize * 1.5, emoteSize: bigEmotes ? fontSize * 3 : fontSize * 1.5,
@ -243,6 +244,7 @@ class MessageContent extends StatelessWidget {
color: textColor.withAlpha(150), color: textColor.withAlpha(150),
fontSize: bigEmotes ? fontSize * 3 : fontSize, fontSize: bigEmotes ? fontSize * 3 : fontSize,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: textColor.withAlpha(150),
), ),
onLinkTap: (url) => UrlLauncher(context, url).launchUrl(), onLinkTap: (url) => UrlLauncher(context, url).launchUrl(),
); );

View File

@ -121,6 +121,9 @@ class PinnedEvents extends StatelessWidget {
.onSurfaceVariant, .onSurfaceVariant,
fontSize: fontSize, fontSize: fontSize,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: Theme.of(context)
.colorScheme
.onSurfaceVariant,
), ),
onLinkTap: (url) => onLinkTap: (url) =>
UrlLauncher(context, url).launchUrl(), UrlLauncher(context, url).launchUrl(),

View File

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

View File

@ -280,6 +280,7 @@ class StoryView extends StatelessWidget {
fontSize: 24, fontSize: 24,
color: Colors.blue.shade50, color: Colors.blue.shade50,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationColor: Colors.blue.shade50,
shadows: event.messageType == MessageTypes.Text shadows: event.messageType == MessageTypes.Text
? null ? null
: textShadows, : textShadows,