<Swing Dev> RFR: 8264398: BevelBorderUIResource(int, Color, Color) spec should mention that the passed colors are for highlightInner and shadowOuter props
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Apr 5 11:26:48 UTC 2021
On Mon, 5 Apr 2021 11:10:40 GMT, Dmitry Bessonov <dbessono at 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
More information about the swing-dev
mailing list