https://kotlinlang.org logo
Title
x

xxfast

02/22/2022, 10:27 PM
is there a way to make the titleBar support dark mode?
x

xxfast

02/22/2022, 11:06 PM
i know of these so that you can render your own titleBar, but the original still appear on MacOS fullscreen mode
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

Mitchell Syer

02/23/2022, 2:07 AM
Im using Darklaf for that purpose https://github.com/weisJ/darklaf/
x

xxfast

02/23/2022, 3:29 AM
how does the compose interface looks like?
k

Kirill Grouchnikov

02/23/2022, 4:16 AM
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

xxfast

02/23/2022, 4:33 AM
the toolbar titlebar would still appear even when compose is rendering the whole window
k

Kirill Grouchnikov

02/23/2022, 5:27 AM
That's not toolbar. You're showing the global menu bar, and the window title bar.
☝️ 1
x

xxfast

02/23/2022, 7:56 AM
Sorry I mean to say, title bar
titleBar is outside of the region compose can render on when in full-screen mode
k

Kirill Grouchnikov

02/23/2022, 1:18 PM
If Compose desktop allows setting things in
Info.plist
then it would be this block
<key>NSRequiresAquaSystemAppearance</key><string>false</string>
e

ephemient

02/23/2022, 2:01 PM
☝️ as written in the first comment of the link I posted
u

ursus

02/05/2023, 3:33 AM
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?