mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 14:10:29 +00:00
fix: reverse inlay text colors
This commit is contained in:
parent
2ddcde1363
commit
6177a7f014
1 changed files with 2 additions and 2 deletions
|
|
@ -82,12 +82,12 @@ class PromptTextFieldInlayRenderer(
|
|||
val startX = (target.x + JBUI.scale(5)).toInt()
|
||||
val startY = (target.y + (target.height - textHeight) / 2 + metrics.ascent).toInt()
|
||||
|
||||
g.color = service<EditorColorsManager>().globalScheme.defaultForeground
|
||||
g.color = textAttributes?.foregroundColor ?: JBColor.foreground()
|
||||
g.drawString(actionPrefix, startX, startY)
|
||||
|
||||
if (!text.isNullOrEmpty()) {
|
||||
val prefixWidth = metrics.stringWidth(actionPrefix)
|
||||
g.color = textAttributes?.foregroundColor ?: JBColor.foreground()
|
||||
g.color = service<EditorColorsManager>().globalScheme.defaultForeground
|
||||
g.drawString(":$text", startX + prefixWidth, startY)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue