Skip to content

Commit a38f525

Browse files
committed
fix: use correct theme key for link color
link.foreground returns black in some themes, use 'link' key instead which has the correct blue color
1 parent 4d9ade2 commit a38f525

File tree

1 file changed

+3
-1
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme

1 file changed

+3
-1
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/EditorThemeAdapter.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ class EditorThemeAdapter {
8585
darkDefault = 0x3C3F41,
8686
)
8787

88+
val linkColor = themeColor("link", "Link.activeForeground", default = 0x589DF6)
89+
8890
return AmazonQTheme(
8991
darkMode = !JBColor.isBright(),
9092
font = UIUtil.getFont(UIUtil.FontSize.NORMAL, null),
9193

9294
defaultText = text,
9395
inactiveText = themeColor("TextField.inactiveForeground", default = 0x8C8C8C, darkDefault = 0x808080),
94-
linkText = themeColor("link.foreground", "link", "Link.activeForeground", default = 0x589DF6),
96+
linkText = linkColor,
9597

9698
background = chatBackground,
9799
border = getBorderColor(currentScheme),

0 commit comments

Comments
 (0)