Keep original link color (blue), only fix non-link text color

Co-authored-by: rustdesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-31 18:51:02 +00:00
parent bace6b918f
commit 255ce534c9

View File

@@ -1135,11 +1135,8 @@ Widget createDialogContent(String text) {
final List<TextSpan> spans = [];
int start = 0;
// Get theme-aware colors
// Get theme-aware color for non-link text
final textColor = Theme.of(context).textTheme.bodyMedium?.color;
final linkColor = Theme.of(context).brightness == Brightness.dark
? Colors.lightBlue
: Colors.blue;
linkRegExp.allMatches(text).forEach((match) {
if (match.start > start) {
@@ -1148,7 +1145,7 @@ Widget createDialogContent(String text) {
spans.add(TextSpan(
text: match.group(0) ?? '',
style: TextStyle(
color: linkColor,
color: Colors.blue,
decoration: TextDecoration.underline,
),
recognizer: TapGestureRecognizer()