-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Dimm WCO when dialog opens #236080
base: main
Are you sure you want to change the base?
Dimm WCO when dialog opens #236080
Conversation
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.
There is another case of new Dialog
here:
dialog = new Dialog( |
@@ -33,11 +36,14 @@ export class DialogHandlerContribution extends Disposable implements IWorkbenchC | |||
@IKeybindingService keybindingService: IKeybindingService, | |||
@IInstantiationService instantiationService: IInstantiationService, | |||
@IProductService productService: IProductService, | |||
@IClipboardService clipboardService: IClipboardService | |||
@IClipboardService clipboardService: IClipboardService, | |||
@INativeHostService nativeHostService: INativeHostService, |
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.
Native host service is Electron only, not web.
const overlayColor = new Color(new RGBA(0, 0, 0, 0.3)); | ||
const backgroundColor = dimmed ? overlayColor.makeOpaque(titleBarBackgroundColor) : titleBarBackgroundColor; | ||
const foregroundColor = dimmed ? overlayColor.makeOpaque(titleBarForegroundColor) : titleBarForegroundColor; | ||
|
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.
Is this taken from somewhere were we already dim buttons or is this new? We still have custom window buttons around here:
if (isLinux && !hasNativeTitlebar(this.configurationService) && !isWCOEnabled() && this.windowControlsContainer) { |
Implement dimming of window controls when a dialog is open and updates the colors of the window controls based on the windows active state.
fixes #159671