-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Add tooltips to Window controls #158112
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
base: main
Are you sure you want to change the base?
Add tooltips to Window controls #158112
Conversation
Adds tooltips to Minimize, Maximize, Restore and Close buttons respectively.
`Restore Down` appears to be the terminology used on modern Windows.
@@ -177,7 +179,11 @@ export class TitlebarPart extends BrowserTitleBarPart { | |||
this.nativeHostService.minimizeWindow(); | |||
})); | |||
|
|||
// Restore | |||
this._register(addDisposableListener(minimizeIcon, EventType.MOUSE_OVER, e => { | |||
setupCustomHover(this.hoverDelegate, minimizeIcon, localize('window.minimize', 'Minimize')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setupCustomHover function is already binding to the DOM event, so you don't need the additional event listener on these. You just need to register the result of the function call.
@wmentha are you able to bring this PR up to date and address the comments? |
@sbatten Apologies, I'll see if I can address this today 👍 |
PR Summary
Adds
Minimize
,Maximize
,Restore
&Close
tooltips to their respective window control button.Demonstration