Commit ff0f45c7 authored by Yuriy Artamonov's avatar Yuriy Artamonov Committed by intellij-monorepo-bot
Browse files

IDEA-262180 Evaluate JSONPath: the font used for the expression field should...

IDEA-262180 Evaluate JSONPath: the font used for the expression field should be the same as the editor one

(cherry picked from commit 39bf74ee0ca5e1c45df4a2515427a591bff58597)

IDEA-CR-70868

GitOrigin-RevId: 9498200f59169c0dc84707e21b25bcaceec61872
parent 3727e12b
Branches unavailable Tags unavailable
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -68,7 +68,7 @@ internal abstract class JsonPathEvaluateView(protected val project: Project) : S
override fun createEditor(): EditorEx {
val editor = super.createEditor()
editor?.setBorder(JBUI.Borders.empty())
editor.setBorder(JBUI.Borders.empty())
editor.component.border = JBUI.Borders.empty(4, 0, 3, 6)
editor.component.isOpaque = false
editor.backgroundColor = UIUtil.getTextFieldBackground()
......@@ -76,9 +76,7 @@ internal abstract class JsonPathEvaluateView(protected val project: Project) : S
val psiFile = PsiDocumentManager.getInstance(project).getPsiFile(editor.document)
if (psiFile != null) {
psiFile.putUserData(JSON_PATH_EVALUATE_EXPRESSION_KEY, true)
psiFile.putUserData(JSON_PATH_EVALUATE_SOURCE_KEY, Supplier {
getJsonFile()
})
psiFile.putUserData(JSON_PATH_EVALUATE_SOURCE_KEY, Supplier(::getJsonFile))
}
return editor
......@@ -115,6 +113,8 @@ internal abstract class JsonPathEvaluateView(protected val project: Project) : S
historyButtonWrapper.border = JBUI.Borders.empty(3, 6, 3, 6)
historyButtonWrapper.add(historyButton, BorderLayout.NORTH)
searchTextField.setFontInheritedFromLAF(false) // use font as in regular editor
searchWrapper.add(historyButtonWrapper, BorderLayout.WEST)
searchWrapper.add(searchTextField, BorderLayout.CENTER)
searchWrapper.border = JBUI.Borders.customLine(JBColor.border(), 0, 0, 1, 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment