<Swing Dev> RFR: 8264398: BevelBorderUIResource(int, Color, Color) and BevelBoder(int, Color, Color) spec should clarify about usage of highlight and shadow color [v3]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Sat Apr 10 11:43:30 UTC 2021
On Sat, 10 Apr 2021 11:23:42 GMT, Dmitry Bessonov <dbessono at openjdk.org> wrote:
>> I guess I have done what is being asked. Are there any other comments? If not, can this PR and CSR be approved please?
>
> So as per the updated version of the specification - what could be checked is that the resulting inner/outer/highlight/shadow colors should be either:
> - equal to the passed
> - ::brighter() than the passed
> - darker() than the passed
> ?
Yes, the passed highlight and shadow color to the constructor would be equal to getHighlightInnerColor(), getShadowOuterColor but again this is for our jdk implementation. As told in the JBS, these are implementation details which should hold true if JDK's BevelBorder class is in use
but some other JDK can override the class and can give its own implementation as the class is not 'final'.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3305
More information about the swing-dev
mailing list