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

How do you get the menu's on the titlebar in the example pic? #488

Closed
Shadowblitz16 opened this issue Feb 28, 2022 · 5 comments
Closed

How do you get the menu's on the titlebar in the example pic? #488

Shadowblitz16 opened this issue Feb 28, 2022 · 5 comments
Milestone

Comments

@Shadowblitz16
Copy link

Shadowblitz16 commented Feb 28, 2022

How do you get the menu's on the titlebar in the example pic?
https://www.formdev.com/flatlaf/screenshots/flat_dark2.png

I can't even get the menubar to be the right color
image

@Kokecena
Copy link

the menu embedded in the title only works on Windows 10/11

@DevCharly
Copy link
Collaborator

This will be available for Linux too in FlatLaf 2.1 (see #482)

Please try the latest snapshot: https://github.com/JFormDesigner/FlatLaf#snapshots

To enable it use:

if( SystemInfo.isLinux ) {
    // enable custom window decorations
    JFrame.setDefaultLookAndFeelDecorated( true );
    JDialog.setDefaultLookAndFeelDecorated( true );
}

@DevCharly DevCharly added this to the 2.1 milestone Feb 28, 2022
@Kokecena
Copy link

Kokecena commented Mar 1, 2022

Wow that was too fast!

@Shadowblitz16
Copy link
Author

Shadowblitz16 commented Mar 3, 2022

@DevCharly does this titlebar / menubar theme work with internal frames also?

it would be nice to also have mdi support

@DevCharly
Copy link
Collaborator

does this titlebar / menubar theme work with internal frames also?

Yes, internal frames use same/similar look for title bars.
But embedding menu bar into internal frame title bar does not work.

Anyway, internal frames can have menu bars:

image

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

No branches or pull requests

3 participants