Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window decorations: support toolbox-style "small" window title bar #702

Merged
merged 2 commits into from Aug 5, 2023

Conversation

DevCharly
Copy link
Collaborator

This PR adds support for toolbox-style "small" window title bars if FlatLaf Window decorations are used.
See issue #659

The "small" window title bar has a smaller height, smaller iconify/maximize/close buttons and the font of the title is also smaller:

image

Default window title bar for comparison:

image

To enable small title bar either set window type to utility:

frame.setType( Window.Type.UTILITY );

Or set client property on root pane:

frame.getRootPane().putClientProperty( "Window.style", "small" );

This is compatible to Java on macOS, which supports small title bar out of the box. See screenshot here #659

@DevCharly DevCharly added this to the 3.2 milestone Jul 30, 2023
@DevCharly DevCharly merged commit c395386 into main Aug 5, 2023
7 checks passed
@DevCharly DevCharly deleted the toolbox-style-window-title-bar branch August 5, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant