<Swing Dev> RFR: 8256019: JLabel HTML text does not support translucent text colors [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Mon Nov 23 07:39:58 UTC 2020


On Mon, 23 Nov 2020 05:52:59 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> I have already mentioned it here.
>
> But in what place we parse "rgb(...)"? it does not seem mentioned in this method and does not depend on the c.getForeground()?

It is parsed in Parser.java#parseAttributeValue() which is being called from this method via kit.read().
It also parses rgba() and store it but JDK does not seem to support rgba() in CSS.java and also SwingUtilities2.displayPropertiesToCSS() which is being called prior to html parsing so alpha needs to be parsed separately.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1158


More information about the swing-dev mailing list