From 7288b07e0aee441154570268b2fbbf5ac499592e Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 28 Jul 2022 09:35:09 -0700 Subject: [PATCH] Add comments to titlebar-related variables --- app/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main.ts b/app/main.ts index ab6d54d25f..08f01464c3 100644 --- a/app/main.ts +++ b/app/main.ts @@ -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 { color, symbolColor, - // Should match stylesheets/components/TitleBarContainer.scss + // Should match `--titlebar-height` in stylesheets/_titlebar.scss height: 28 - 1, }; }