Change Hyperlink Color? #427
-
Hi folks - I'm converting all the default xshd files for DarkMode applications. On stumbling block I've hit is how to change the colour of hyperlinks. At present they look like this: Ideally, the solution would be changing this via the xshd file, but I'm not sure this is possible? Second best would be how to change this programmatically and globally for the editor when switching to dark mode, if such a feature exists. Done a bit of a search - can't find anything on this.... Hope someone can help. Loving this btw 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's not possible, unfortunately. The hyperlink generator uses a different mechanism than highlighting.
You can set the default color like this, by having a default style for <Style TargetType="{x:Type avalonedit:TextView}">
<Setter Property="LinkTextForegroundBrush" Value="#99DAF9" />
</Style> Or by changing that property from C#: yourTextEditor.TextArea.TextView.LinkTextForegroundBrush = Brushes.LightBlue; |
Beta Was this translation helpful? Give feedback.
That's not possible, unfortunately. The hyperlink generator uses a different mechanism than highlighting.
You can set the default color like this, by having a default style for
TextView
in scope:Or by changing that property from C#: