is there a way to make the titleBar support dark m...
# compose-desktop
x
is there a way to make the titleBar support dark mode?
x
i know of these so that you can render your own titleBar, but the original still appear on MacOS fullscreen mode
Copy code
window.rootPane.apply {
  rootPane.putClientProperty("apple.awt.fullWindowContent", true)
  rootPane.putClientProperty("apple.awt.transparentTitleBar", true)
  rootPane.putClientProperty("apple.awt.windowTitleVisible", true)
}
is there no way to change the original one though
m
Im using Darklaf for that purpose https://github.com/weisJ/darklaf/
x
how does the compose interface looks like?
k
You can apply a Swing look-and-feel on the whole window, but have the content come from Compose. So you that look-and-feel won't have any effect on your content.
x
the toolbar titlebar would still appear even when compose is rendering the whole window
k
That's not toolbar. You're showing the global menu bar, and the window title bar.
☝️ 1
x
Sorry I mean to say, title bar
titleBar is outside of the region compose can render on when in full-screen mode
k
If Compose desktop allows setting things in
Info.plist
then it would be this block
Copy code
<key>NSRequiresAquaSystemAppearance</key><string>false</string>
e
☝️ as written in the first comment of the link I posted
u
naive question but is there an api for that? (wrriting the info.plist) or should I just create the file and it will get packaged?