Skip to content

Arrow icons customization #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sesquialtera87
Copy link

It would be nice to have a way to change the icons appearing in the description window.
In may case, I'm using FlatLaf and I prefer to change the default icons of the AutoCompleteDescWindow with other flat icons.
Currently I didn't find any solution, since also backAction and forwardAction are private fields, and so subclass AutoCompleteDescWindow it's not helpful.

I propose to search for the icons into the UIManager, so that one can customize them simply through UIManager.put("autocomplete.leftArrow", icon) and UIManager.put("autocomplete.rightArrow", icon).

During initialization, ToolBarForwardAction and ToolBarBakcAction search for custom icons and, if not found, use the default currently provided by the library.

@bobbylight bobbylight self-assigned this May 3, 2025
@bobbylight bobbylight added this to the 3.3.3 milestone May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants