diff options
author | Kirill Kirichenko <kirill.kirichenko@jetbrains.com> | 2018-10-26 14:18:17 +0300 |
---|---|---|
committer | Dana Dahlstrom <dahlstrom@google.com> | 2022-02-11 13:00:00 -0800 |
commit | 05b92fb83132c51b46efcbd0b66002daf38cea1c (patch) | |
tree | 9e2deb0e8dd6002c3b0cd71cfef1df93b3c8ab29 /android/testSrc | |
parent | c9f137657d1ab7db7eba21acdfc06d9efbe1e50f (diff) | |
download | idea-05b92fb83132c51b46efcbd0b66002daf38cea1c.tar.gz |
Move link colors from JBColor to JBUI.CurrentTheme.Link
Change-Id: Iecec9fa50c9547492150206c83b12a11c07d07f7
Diffstat (limited to 'android/testSrc')
-rw-r--r-- | android/testSrc/com/android/tools/idea/gradle/structure/configurables/ui/properties/ParsedValueRendererTest.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/testSrc/com/android/tools/idea/gradle/structure/configurables/ui/properties/ParsedValueRendererTest.kt b/android/testSrc/com/android/tools/idea/gradle/structure/configurables/ui/properties/ParsedValueRendererTest.kt index 6091eb97f10..0f1302e7905 100644 --- a/android/testSrc/com/android/tools/idea/gradle/structure/configurables/ui/properties/ParsedValueRendererTest.kt +++ b/android/testSrc/com/android/tools/idea/gradle/structure/configurables/ui/properties/ParsedValueRendererTest.kt @@ -20,6 +20,7 @@ import com.android.tools.idea.gradle.structure.model.android.asParsed import com.android.tools.idea.gradle.structure.model.meta.* import com.intellij.ui.JBColor import com.intellij.ui.SimpleTextAttributes +import com.intellij.util.ui.JBUI import org.hamcrest.CoreMatchers.equalTo import org.junit.Assert.assertThat import org.junit.Test @@ -317,7 +318,7 @@ private fun testRender(action: TextRenderer.() -> Unit): String = if (attributes.fgColor == SimpleTextAttributes.GRAYED_ATTRIBUTES.fgColor && color != "comment") { result += "<comment>"; color = "comment" } - if (attributes.fgColor == JBColor.link() && color != "var") { + if (attributes.fgColor == JBUI.CurrentTheme.Link.Foreground.ENABLED && color != "var") { result += "<var>"; color = "var" } if (attributes.fgColor == SimpleTextAttributes.ERROR_ATTRIBUTES.fgColor && color != "error") { |