Titlebar fixes
This commit is contained in:
parent
f273333046
commit
f92be05b15
41 changed files with 225 additions and 154 deletions
|
@ -1,10 +1,14 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
{
|
||||
const updateFullScreenClass = (isFullScreen: boolean) => {
|
||||
const updateFullScreenClass = (
|
||||
isFullScreen: boolean,
|
||||
isMaximized: boolean
|
||||
) => {
|
||||
document.body.classList.toggle('full-screen', isFullScreen);
|
||||
document.body.classList.toggle('maximized', isMaximized);
|
||||
};
|
||||
updateFullScreenClass(window.isFullScreen());
|
||||
updateFullScreenClass(window.isFullScreen(), window.isMaximized());
|
||||
window.onFullScreenChange = updateFullScreenClass;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue