JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.26k stars 192 forks source link

How is the full screen title bar hidden in the MacOS system implemented? It seems to be related to runtime, please see the picture. This issue has been bothering me for a long time #327

Closed lwlha closed 5 months ago

lwlha commented 5 months ago

Case 1: When I use bundle running, after full screen: WechatIMG119

Case 2: When I use this runtime, the title bar becomes floating after full screen display:

截屏2024-03-05 09 48 44

I think the title bar implementation of case1 is currently the most perfect for non native applications. What should I do if I want to use it in my own Java GUI application?

YaaZ commented 5 months ago

@lwlha custom title bar is controlled via JBR API, I explained how to build and use it in anouther thread (#185). Please see com.jetbrains.WindowDecorations.CustomTitleBar class and related javadoc.