mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
style: Link underline color
This commit is contained in:
parent
e49408e5b0
commit
2d0e7a491e
@ -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,
|
||||||
|
@ -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(),
|
||||||
);
|
);
|
||||||
|
@ -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(),
|
||||||
|
@ -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(),
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user