1.1 KiB
1.1 KiB
| outline | package |
|---|---|
| deep | @prozilla-os/core |
Class WindowsConfig
Constructor
new WindowsConfig(options)
Parameters
options
- Optional
- Type:
WindowsConfigOptions
interface WindowsConfigOptions {
screenMargin?: number;
titleSeparator?: string;
minScreenSize?: Vector2;
}
[!NOTE] References
Properties
screenMargin
- Type:
number - Default:
32
The margin in CSS pixels that windows will keep between them and the edges of the screen on smaller devices
titleSeparator
- Type:
string - Default:
"-"
A string that is placed between different parts of a window title
minScreenSize
- Type:
Vector2 - Default:
new Vector2(350, 350)
If the user's screen is smaller than these values, windows will always be maximized
Warning
Keep these values as low as possible, as this limits some functionality of the OS on devices with certain screen sizes.