[ https://issues.apache.org/jira/browse/NETBEANS-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17439884#comment-17439884 ]
Eirik Bakke commented on NETBEANS-3746: --------------------------------------- > there is no difference between swing L&F switching theme and that what > FlatLaF does The difference is that NetBeans FlatLAF code has been developed by a single person, who has been keeping the LAF switching (and theme switching) scenario in mind and tested it frequently. In constrast, other LAF-related code in NetBeans has been developed over years by many different people, who have all assumed that the LAF will never change at runtime. There's a lot of isAqua(), isWindowsLaF(), isGTK() calls etc. spread around the NetBeans codebase, each being read only once as a component is initialized or such ( https://github.com/apache/netbeans/search?q=isaqua ). Each of these would cause a bug if the LAF was switched without a restart. But it wouldn't be a problem if merely switching the FlatLAF theme, since isFlatLAF() would just keep returning true. > [FlatLaF] Change theme for FlatLaF > ---------------------------------- > > Key: NETBEANS-3746 > URL: https://issues.apache.org/jira/browse/NETBEANS-3746 > Project: NetBeans > Issue Type: New Feature > Components: FlatLaf, ide - UI, platform - Options&Settings > Environment: Product Version: Apache NetBeans IDE 11.1 > Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 > Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS > Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS > System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) > User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.1 > Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.1 > Reporter: Christian Lenz > Assignee: Karl Tauber > Priority: Major > Labels: Look&Feel, theme > Attachments: flat-laf-changing-theme.gif > > > As far as I know, there ia theming option for FlatLaF inside the FlatLaF > demo. See my screencapture for more info. So it is possible via JSON to theme > the LaF easy and restartless. IntelliJ is doing that and it works like a > charm. > The problem of NetBeans changing LaF is you often need to restart, because > not all components are repainted correctly. But it seems that theming of > FlatLaF is independent from NetBeans. > So it would be nice, if we can switch the FlatLaF theme easy via NetBeans as > it is possible in the FlatLaF demo which is located here: > https://github.com/JFormDesigner/FlatLaf > I already asked here: https://github.com/JFormDesigner/FlatLaf/issues/29 -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists