wails icon indicating copy to clipboard operation
wails copied to clipboard

Need traffic light position setting

Open dinoox opened this issue 10 months ago • 7 comments

Is your feature request related to a problem? Please describe.

we need to set TrafficLightPosition in title bar:

TitleBar: &mac.TitleBar{ TitlebarAppearsTransparent: true, HideTitle: true, HideTitleBar: false, FullSizeContent: true, UseToolbar: false, }

Image

Describe the solution you'd like

Need add TrafficLightPosition setting in this config

dinoox avatar Apr 21 '25 01:04 dinoox

Any ideas how to change position at the moment?

whitemyrat avatar May 15 '25 20:05 whitemyrat

Looking into adding this as an enhancement. Not super familiar with Objective-C but I also need this feature. Got something potentially working following what Electron is doing, will post updated probably in the next week or so.

DeadlySurgeon avatar Nov 21 '25 17:11 DeadlySurgeon

v2 or v3? You didn't post your wails doctor output? Did you try mac.TitleBarHiddenInset() like it says here: https://wails.io/docs/reference/options#titlebar-struct

leaanthony avatar Nov 22 '25 03:11 leaanthony

If this is for v3, feel free to open it again.

leaanthony avatar Nov 22 '25 03:11 leaanthony

Probably needs to be reopened. This is about the position of the traffic lights and mac.TitleBarHiddenInset() doesn't address that.

Specifically op is requesting something like: 435516582-9df3d36e-6864-4831-972a-e5aae36c2989.png 435516582-9df3d36e-6864-4831-972a-e5aae36c2989~2.png

(Excuse my bad drawing, I'm doing this from my phone in bed at 4am)

DeadlySurgeon avatar Nov 22 '25 09:11 DeadlySurgeon

It doesn't?

Image

leaanthony avatar Nov 22 '25 10:11 leaanthony

Discussed on discord. The feedback is that there are public APIs for arbitrary positioning which we could use for this.

leaanthony avatar Nov 22 '25 21:11 leaanthony