-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move window controls to the left #138
Comments
Sorry, but I don't know. I wrote that code over six years ago and I no longer understand it. There isn't that much code, so I think you'll just need to sit down and play with it to see how it works. |
No worries. Did some "hacking" and found the relevant part. Most of the magic happens in moveresizePieces(), updateIcon and updateTitle. The pieces' So to place the f.buttonMinimize.MROpt(fX,
f.buttonMaximize.x()-f.buttonMinimize.w(), 0, 0, 0) to f.buttonMinimize.MROpt(fX,
f.titleBar.x()+f.buttonMinimize.w(), 0, 0, 0) The result: Note to myself: Think about switching the geometry from |
Still largely a WIP (the buttons should probably be closer to the left corner still, and the title centered), but this is what my little "fork" of I already have an idea on how I may implement double clicks, too (since I'm getting rid of the Just thought I'd post my progress. Always nice to share. 😸 |
Awesome, that looks great! Nice work! :) |
This is something I've been struggling with for a while now.
I'd like to move the window controls (minimize, maximize, close) to the left and display the title text to the right of them.
What changes in code are necessary to achieve that? I don't quite understand the way
frame/full.go
is supposed to work.The text was updated successfully, but these errors were encountered: