Be able to setup FlatLaf styling for code editor toolbar separately from other toolbars in application
Be able to setup FlatFal styling for code editor toolbar separately from other toolbars in application. Main purpose - provide more flexibility in configuring FlatLaf style for NetBeans.
What this change does - it adds FlatLaf styleClass property for code editor toolbar. This allows to set FlatLaf style for this toolbar separately from other toolbars in the application.
Below are screenshots with example usage of this property. By settings
[style].nb-editor-toolbar = background: #FFFFFF in FlatLaf.properties I can make background for code editor toolbar white while keeping other toolbars unchanged. In combination with other FlatLaf properties e.g.
Tree.background=#F2F2F2
ScrollBar.track=#F2F2F2
ComboBox.background=#F2F2F2
EditorTab.background=#F2F2F2
EditorTab.activeBackground=#F2F2F2
EditorTab.selectedBackground = #FFFFFF
ViewTab.selectedBackground = #F2F2F2
At the moment I can style NetBeans like it is displayed on screenshot except of setting style for code editor toolbar. What I want to achieve in this example is to use white color for "light" LAF only for code editor area including code editor toolbar. While keeping all other panels (see screenshots) light grey.
This PR is not about all these changes you see on screenshot. PR does not change any default look and feel of NetBeans. PR is about to let people to apply their own styles in which editor toolbar can be styled differently from other toolbars in the application.
@mbien @steffendietz @khmarbaise @cstamas can I please ask to review this PR? It is literally 2 lines of code. And this changes allows to set FlarLaf style for code editor toolbar to be different from the main toolbar. This by itself gives more freedom and flexibility in respect to custom styling
NB 28 is branched and in the release phase, a change like this would be for NB 29 and there is no hurry for that. I did see this PR, but didn't have the time to take a proper look. Since ideally things like this would have to be registered in the FlatLaf branding module to keep things decoupled.
Also please don't ping so many contributors, not all you pinged are even maintainers.
Did someone mentioned Maven? :eyes: