-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Need way to have a different background color for focused text components #335
Milestone
Comments
Another component that is not a text component that would be interesting too: a combo box |
Chrriis
added a commit
to Chrriis/FlatLaf
that referenced
this issue
Jun 8, 2021
DevCharly
added a commit
that referenced
this issue
Jun 15, 2021
- use focusedBackground only if editable (and enabled) - prefer explicit set background color over focusedBackground - added FlatTextFieldUI.getBackground() used by all text components - support EditorPane.focusedBackground - support TextPane.focusedBackground (issue #335)
DevCharly
added a commit
that referenced
this issue
Jun 15, 2021
ComboBox: - prefer explicit set background color over focusedBackground - if ComboBox.buttonFocusedBackground is not specified use ComboBox.focusedBackground - added ComboBox.popupFocusedBackground (issue #335)
DevCharly
added a commit
that referenced
this issue
Jun 15, 2021
Issue #335: allow a different background on focus
DevCharly
added a commit
that referenced
this issue
Jul 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all!
GitHub and Firefox, among others, have text components with a gray background that becomes white when focused.

Example:
I am trying to achieve a similar effect with FlatLaf but I don't see any properties to tweak the behavior on focus. Am I missing something? I tried these:
Here is the test code:
... and here is the output:

Thanks in advance!
The text was updated successfully, but these errors were encountered: