RFR: 8234315: GTK LAF does not gray out disabled JMenu

Sergey Bylokhov serb at openjdk.org
Tue Sep 6 23:00:28 UTC 2022


On Tue, 6 Sep 2022 05:37:02 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

> Disabled JMenu foreground color was not grayed out in GTK LAF for version 3. The issue didn't occur in GTK-2. 
> After analysis it has been found that the JMenu widget type was changed to JMenuBar and the color value returned for the foreground color in disabled state was close to black color (RGB 0,0,0) for menubar which is not differentiable from enabled state foreground color.
> 
> As a fix for this problem, if the menubar is in disabled state then the widget is changed to JMenu and color value returned for disabled menu is gray color.
> 
> An automated test case has been added and checked in CI, link is added in JBS.

Does the new color looks the same as in the native applications?

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

PR: https://git.openjdk.org/jdk/pull/10176



More information about the client-libs-dev mailing list