On Tue, 11 Feb 2025 03:00:29 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuItemUI.java >> line 663: >> >>> 661: paintIcon(g, lh, lr, holdc); >>> 662: if (UIManager.getLookAndFeel().getName().equals("Windows") >>> 663: && System.getProperty("os.name").equals("Windows 11") >> >> It's not what I meant. >> >> I suggested painting the menu items *the same way* for Windows 10 and 11. >> Yet the layout for Windows 11 should be tweaked. >> >> To be clear, the bullet / check-mark is painted at the same location where >> it would be painted if there were no custom icon for both Windows 10 and 11. >> The custom icon is painted to the right of the bullet / check-mark, and the >> menu text moves farther to the right. > > This will preserve existing windows 10 behavior and at the same time, it will > show Windows 11 File explorer behavior. > What is the need to show the same way for WIndows 10 and 11 when it will not > be same as what native does for windows 10. > > I am sorry but I dont agree to this... Because, as you say, support for Windows 10 ends in October this year. For this reason, I'd rather avoid the complexity of supporting different look for Windows 10 and 11. I won't object to this if you think it's important to support Windows 10 look. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23324#discussion_r1951010812