Add comments to titlebar-related variables

This commit is contained in:
Fedor Indutny 2022-07-28 09:35:09 -07:00 committed by GitHub
parent 9fbbb7a8d2
commit 7288b07e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -607,6 +607,10 @@ if (OS.isWindows()) {
windowIcon = join(__dirname, '../build/icons/png/512x512.png');
}
// The titlebar is hidden on:
// - Windows < 10 (7, 8)
// - macOS (but no custom titlebar is displayed, see
// `--title-bar-drag-area-height` in `stylesheets/_titlebar.scss`
const mainTitleBarStyle =
(OS.isMacOS() || OS.hasCustomTitleBar()) &&
!isTestEnvironment(getEnvironment())
@ -642,7 +646,7 @@ async function getTitleBarOverlay(): Promise<TitleBarOverlayOptions | false> {
color,
symbolColor,
// Should match stylesheets/components/TitleBarContainer.scss
// Should match `--titlebar-height` in stylesheets/_titlebar.scss
height: 28 - 1,
};
}