andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 652 forks source link

Can you create Window center func ? #392

Open miajio opened 3 years ago

miajio commented 3 years ago

this pkg all ui not set fixed position be aimed at ui create position user experience is very bad my boss look the ui very angry omg I don't know other golang ui pkg It's so hard for me

phaus commented 3 years ago

The thing is: you have to implement this behavior for each platform itself. For MacOS it can be done like this: https://github.com/mojbro/gocoa/commit/6b4e3a09f6b93b7ed2365394fe2cfb1d3c9481de#diff-e5034ee93d5b1809b8008df39ab4eda1b3620bf956dec3c6a8a539ac46d0d62f

If you want to save the window position somehow, it is additional effort to do so. Which platform do you target?