Line data Source code
1 : import { isMacDesktopHost } from '../platform/platform_type.js';
2 : import { useAppConfig } from '../config/app_config.js';
3 :
4 : /// Is the app laid out like the desktop app on macOS, with the traffic lights in the top left corner of the window?
5 : /// The Mac Window Layout setting shows this layout in the browser.
6 1 : export function useMacWindowLayout(): boolean {
7 1 : const config = useAppConfig();
8 1 : return isMacDesktopHost() || (config?.settings?.macWindowLayout ?? false);
9 1 : }
|