On Fri, 20 Nov 2020 03:42:01 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicHTML.java line 76: >> >>> 74: } >>> 75: col = new Color(Integer.parseInt(color[0]), >>> Integer.parseInt(color[1]), >>> 76: Integer.parseInt(color[2]), >>> (int)(Float.parseFloat(color[3])*255)); >> >> It seems OceanTheme in Metal L&F supports only rgb >> >> `ColorUIResource CONTROL_TEXT_COLOR = new PrintColorUIResource(0x333333, >> Color.BLACK)` >> >> so even when Color(r,g,b,a) is used, it creates rgb color and not rgba >> so alpha is obtained and passed separately. > > 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()? ------------- PR: https://git.openjdk.java.net/jdk/pull/1158