Skip to content

Fix: apply IDE Editor font to prompt input field#1013

Open
flobo3 wants to merge 1 commit intodevoxx:masterfrom
flobo3:fix/input-field-editor-font
Open

Fix: apply IDE Editor font to prompt input field#1013
flobo3 wants to merge 1 commit intodevoxx:masterfrom
flobo3:fix/input-field-editor-font

Conversation

@flobo3
Copy link
Copy Markdown

@flobo3 flobo3 commented Apr 16, 2026

Fix

The prompt input field uses Swing's default monospace font (Courier) instead of the IDE Editor font configured in Settings.

Root cause

CommandAutoCompleteTextField (extends JBTextArea) never sets a font, so it falls back to the Swing default. FontUtil already reads the IDE Editor font but is not used by the input field.

Changes

1 file changed: PromptInputArea.java (+27 / -1)

  • Added EditorColorsListener interface to the class
  • On construction: apply EditorColorsScheme.getFont(null) to the input field (both family and size)
  • On scheme change: re-apply font so it updates live when user changes Editor font settings

Testing

  • Change IDE Editor font (Settings > Editor > Font) — input field should update immediately
  • Change font size — input field should reflect the new size
  • Restart IDE — input field should start with the correct font

Closes #1012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input field font ignores IDE Editor font settings

1 participant