You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
When displaying HTML in a JTree, SubstanceDefaultTreeCellRenderer has issues. I think it's related to the rollover effect.
It's difficult to explain in words, but I'll try. When "rolling over" several tree nodes displaying HTML, varying the speed of the rollover, the text using the "default" color in HTML seems to end up a random color in the range [unselected - selected/armed]. Further, on rollover, the "default" color for HTML text is entirely incorrect; it still uses the "unselectedText" color, or something close to it, instead of the color used for rollover text that isn't HTML. However, in some circumstances it'll end up the "correct" color. It seems to have to do with the state of the previously rolled-over item (selected or not).
In other words, it's very strange. :) This looks pretty bad, and makes HTML unusable in tree nodes.
This happens in all skins, but it's most noticeable in skins with drastically different colors used for selected and unselected tree items, such as Graphite Glass. Try the example below, and roll over all tree nodes, up and down, at varying speeds:
I'd assume that color or state is being cached somewhere where it shouldn't be.
In my trees, I typically return the text with the HTML stripped when an item is selected, so you don't see problems there per-se, but the issue with HTML text on rollover is always there.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When displaying HTML in a JTree, SubstanceDefaultTreeCellRenderer has issues. I think it's related to the rollover effect.
It's difficult to explain in words, but I'll try. When "rolling over" several tree nodes displaying HTML, varying the speed of the rollover, the text using the "default" color in HTML seems to end up a random color in the range [unselected - selected/armed]. Further, on rollover, the "default" color for HTML text is entirely incorrect; it still uses the "unselectedText" color, or something close to it, instead of the color used for rollover text that isn't HTML. However, in some circumstances it'll end up the "correct" color. It seems to have to do with the state of the previously rolled-over item (selected or not).
In other words, it's very strange. :) This looks pretty bad, and makes HTML unusable in tree nodes.
This happens in all skins, but it's most noticeable in skins with drastically different colors used for selected and unselected tree items, such as Graphite Glass. Try the example below, and roll over all tree nodes, up and down, at varying speeds:
I'd assume that color or state is being cached somewhere where it shouldn't be.
In my trees, I typically return the text with the HTML stripped when an item is selected, so you don't see problems there per-se, but the issue with HTML text on rollover is always there.
The text was updated successfully, but these errors were encountered: