mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-24 08:45:18 +01:00
Allow compact frameless auxiliary windows (#329485)
This commit is contained in:
@@ -98,9 +98,14 @@ export class AuxiliaryWindow extends BaseWindow implements IAuxiliaryWindow {
|
||||
// Lifecycle
|
||||
this.lifecycleMainService.registerAuxWindow(this);
|
||||
|
||||
// Hide macOS traffic light buttons for frameless windows
|
||||
if (isMacintosh && options?.frame === false) {
|
||||
window.setWindowButtonVisibility(false);
|
||||
// Allow frameless windows to size down to their content
|
||||
if (options?.frame === false) {
|
||||
window.setMinimumSize(1, 1);
|
||||
|
||||
// Hide macOS traffic light buttons
|
||||
if (isMacintosh) {
|
||||
window.setWindowButtonVisibility(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Disable resizing for non-resizable windows
|
||||
|
||||
@@ -243,8 +243,8 @@ export function defaultBrowserWindowOptions(accessor: ServicesAccessor, windowSt
|
||||
options.frame = false;
|
||||
options.titleBarStyle = undefined;
|
||||
options.titleBarOverlay = undefined;
|
||||
options.minWidth = undefined;
|
||||
options.minHeight = undefined;
|
||||
options.minWidth = 1;
|
||||
options.minHeight = 1;
|
||||
}
|
||||
|
||||
if (overrides?.backgroundColor) {
|
||||
|
||||
Reference in New Issue
Block a user