Skip to content

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wmentha
Copy link

@wmentha wmentha commented Aug 14, 2022

PR Summary

Adds Minimize, Maximize, Restore & Close tooltips to their respective window control button.

Demonstration

WindowControlsTooltip

@sandy081 sandy081 assigned sbatten and unassigned sandy081 Aug 22, 2022
@@ -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'));
Copy link
Member

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.

@sbatten sbatten modified the milestones: On Deck, December 2022 Dec 6, 2022
@sbatten
Copy link
Member

sbatten commented Jan 21, 2023

@wmentha are you able to bring this PR up to date and address the comments?

@sbatten sbatten modified the milestones: January 2023, Backlog Jan 21, 2023
@wmentha
Copy link
Author

wmentha commented Jan 21, 2023

@sbatten Apologies, I'll see if I can address this today 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants