-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Support toolbox-style "small" title bars on Window/Linux, like on MacOS (feature request) #659
Comments
Good idea 👍 |
@eirikbakke I've now implemented this feature in PR #702 If you want to try it out, pre-built JARs are available in the artifacts of this build: |
Oh, that's brilliant, thanks for implementing that! Will test... |
Works great in a stand-alone Java app. I tried with JDialog and JFrame, with a non-empty title set, and with both putClientProperty and Windows.setType. Thanks again! |
Merged PR #702 |
I see that FlatLAF 3.2 is now released; would you like me to make the "Upgrade FlatLaf from 3.1 to 3.2" PR for NetBeans, following the pattern in apache/netbeans#5818 ? |
@eirikbakke that would be great. Thank you. 👍 There is a new DLL in FlatLaf 3.2 for Windows on ARM64. If NB supports this platform, it would be good to also extract this DLL from flatlaf.jar similar to the other DLLs. |
I prepared the version bump pull request for NetBeans at apache/netbeans#6362 |
On MacOS, one can do
JRootPane.putClientProperty("Window.style", "small")
on a JFrame or JDialog to have the OS draw a more compact title bar, as seen in the "Fields" JDialog in the following screenshot (from Ultorg running with FlatLAF Light):Apple's original documentation for the "Window.style" client property can be found here.
It would be nice if FlatLAF could make this kind of title bar style work on Windows and Linux as well, for use with toolbox windows and such.
(As an alternative to a client property, there is also
Windows.setType(Window.Type.UTILITY)
, which was probably meant to be used as a hint for this kind of LAF-specific adjustment in window appearance.)The text was updated successfully, but these errors were encountered: