2022-06-15 18:21:03 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
body {
|
2022-06-20 18:26:31 +00:00
|
|
|
// Overriden by ts/background.ts
|
|
|
|
--zoom-factor: 1;
|
|
|
|
|
2022-06-15 18:21:03 +00:00
|
|
|
// These should match the logic in `ts/types/Settings.ts`'s `getTitleBarVisibility`.
|
|
|
|
//
|
|
|
|
// It'd be great if we could use the `:fullscreen` selector here, but that does not seem
|
|
|
|
// to work with Electron, at least on macOS.
|
|
|
|
--title-bar-drag-area-height: 0px; // Needs to have a unit to work with `calc()`.
|
|
|
|
--draggable-app-region: initial;
|
2022-06-17 16:48:17 +00:00
|
|
|
&.os-macos:not(.full-screen) {
|
2022-06-20 18:26:31 +00:00
|
|
|
--title-bar-drag-area-height: calc(28px / var(--zoom-factor));
|
2022-06-15 18:21:03 +00:00
|
|
|
--draggable-app-region: drag;
|
|
|
|
}
|
|
|
|
|
|
|
|
--window-height: 100vh;
|
|
|
|
--titlebar-height: 0px;
|
|
|
|
|
2022-06-17 16:48:17 +00:00
|
|
|
&.os-windows:not(.full-screen) {
|
2022-06-20 18:26:31 +00:00
|
|
|
--titlebar-height: calc(28px / var(--zoom-factor));
|
2022-06-15 18:21:03 +00:00
|
|
|
--window-height: calc(100vh - var(--titlebar-height));
|
|
|
|
}
|
|
|
|
}
|