-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
ToggleButton.selectedForeground not working for HTML text #848
Comments
…ound` and `[Toggle]Button.pressedForeground` did not work for HTML text (issue #848)
thanks for reporting. Fixed in latest
Implemented in latest New properties are (for JButton and JToggleButton): Button.pressedBorderColor
Button.selectedBorderColor
Button.disabledSelectedBorderColor
Button.focusedSelectedBorderColor
Button.hoverSelectedBorderColor
Button.pressedSelectedBorderColor
Button.default.pressedBorderColor |
Thank you Charly for fixing the selected JToggleButton foreground when it has an HTML text. I've also tested the new properties for JButton and JToggleButton in 3.5.1:
These properties are really useful for selecting the border color. Foreground/background JToggleButton properties that are available for the Button (e.g. ToggleButton.disabled[focused|hover|pressed]selectedForeground[Background]) are not available for the JToggleButton. Thank you very much for your work. |
JToggleButton uses same properties as JButton for button border properties. If you really need separate border properties for JToggleButton, you could create a subclass of |
Hi,
It seems that for a selected JToggleButton foreground is not applied if the button has HTML text.
This could be the same problem as the one reported in https://github.com/JFormDesigner/FlatLaf/issues/756.
I've tested with the latest version (3.4.1) like below:
I've expected to see all buttons with GREEN foreground, if they are selected, but only the normal button looks as expected.
Same happens if the properties are set in the properties file.
Also, maybe the subject for another ticket, there is no possibility to define the border, hover and pressed colors for a selected JToggleButton.
Thanks,
Cristi
The text was updated successfully, but these errors were encountered: