On Mon, 5 Apr 2021 11:10:40 GMT, Dmitry Bessonov <dbess...@openjdk.org> wrote:
>> The current spec for >> javax/swing/plaf/BorderUIResource.BevelBorderUIResource.html(int,java.awt.Color,java.awt.Color) >> does not clearly specify the usage of color for hightlight and shadow as >> there are outer/inner hightlight and outer/inner shadow. >> Updated spec to clarify the same. > > Is there a normative definition somewhere in the spec of what "derived color" > is for this domain? As per https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java#L151 and https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java#L183 `derived ` is used to obtain the darker or brighter version of the same color, which is being done here for this highlight and shadow color too. ------------- PR: https://git.openjdk.java.net/jdk/pull/3305