mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 14:07:28 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user