Be able to setup FlatLaf styling for code editor toolbar separately from other toolbars in application #8893
+6
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.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.