From 2af4fae52db143cd361ca201b6d464c4056bac8c Mon Sep 17 00:00:00 2001 From: Konstantin Aleev Date: Tue, 12 Sep 2017 20:37:17 +0300 Subject: [PATCH] RunDashboard: support node links - Use LaF dependent colors for node links foreground. --- .../hyperlink/RunDashboardHyperlinkTextComponent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/execution/dashboard/hyperlink/RunDashboardHyperlinkTextComponent.java b/platform/lang-api/src/com/intellij/execution/dashboard/hyperlink/RunDashboardHyperlinkTextComponent.java index 59148371667b..de7f6a61a5d6 100644 --- a/platform/lang-api/src/com/intellij/execution/dashboard/hyperlink/RunDashboardHyperlinkTextComponent.java +++ b/platform/lang-api/src/com/intellij/execution/dashboard/hyperlink/RunDashboardHyperlinkTextComponent.java @@ -17,6 +17,7 @@ package com.intellij.execution.dashboard.hyperlink; import com.intellij.ui.SimpleColoredComponent; import com.intellij.ui.SimpleTextAttributes; +import com.intellij.ui.UI; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -54,7 +55,11 @@ public class RunDashboardHyperlinkTextComponent extends RunDashboardHyperlinkCom if (myText.isEmpty()) return; boolean isActive = mySelected || isAimed(); - SimpleTextAttributes linkTextAttributes = isActive ? SimpleTextAttributes.LINK_ATTRIBUTES : SimpleTextAttributes.SYNTHETIC_ATTRIBUTES; + SimpleTextAttributes linkTextAttributes = isActive + ? new SimpleTextAttributes(SimpleTextAttributes.STYLE_UNDERLINE, + UI.getColor("link.hover.foreground")) + : new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, UI.getColor("link.foreground")); + if (myBold) { linkTextAttributes = SimpleTextAttributes.merge(linkTextAttributes, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); }