Skip to content

Conversation

s4gh
Copy link

@s4gh s4gh commented Oct 7, 2025

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.
NetBeans custom LADF properties 1

NetBeans custom LADF properties 2

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 mbien changed the title Be able to setup FlatFal styling for code editor toolbar separately from other toolbars in application Be able to setup FlatLaf styling for code editor toolbar separately from other toolbars in application Oct 7, 2025
@mbien mbien added Platform [ci] enable platform tests (platform/*) UI User Interface Editor Look and Feel labels Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Editor Look and Feel Platform [ci] enable platform tests (platform/*) UI User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants