Is there a way to control the padding of traffic l...
# compose-desktop
a
Is there a way to control the padding of traffic lights? I found some code here to hide the title bar but the controls have 0 padding to the edges EDIT: Tbh what i want is have my own 'toolbar' that looks nice on all platforms and have native controls for close etc. ie on mac os, figure out what the title bar height is supposed to be and place my own buttons on the right side. windows, also change height of buttons depending on the platform's title bar height is there a way to do this? or a workaround
s
You can look at what Jewel or Nucleus do
馃挕 1
I don't know if the native padding can be changed tho if that's what you're after, I suspect they come as a "pre made block"
a
what is Nucleus?
s
I mean @讗诇讬讛讜 讛讚住's, not sure if it was moved to an org or what
d
@seb yes, it was moved a new org.
馃憤 2
s
TIL
馃殌 1
u
I don't know if the native padding can be changed tho if that's what you're after, I suspect they come as a "pre made block"
Yes, indeed, I modified it in the native code so that it aligns with the title bar of the decorated window, but I don't offer the option to modify the padding.
a
I ended up setting the titlebar to transparent instead since it has some padding and changed the UI a bit that just looks nice
Copy code
rootPane.putClientProperty("apple.awt.fullWindowContent", true)
rootPane.putClientProperty("apple.awt.transparentTitleBar", true)
rootPane.putClientProperty("apple.awt.windowTitleVisible", false)
s
@Alex Styl I'm trying to do the same thing, did you manage to get any more top padding than this?
I feel like there must be some way of doing it since Jetbrains IDEs do it and a load of other apps do too
a
nah, I gave up and move on with life
s
Fair enough, I've just tweaked my design too, it's a real pity though