giftstl.blogg.se

Electron api make width of screen
Electron api make width of screen









electron api make width of screen electron api make width of screen

Defaults to background image width or 540. y = 100 Number - The Y position relative to bottom of the screen.x = 400 Number - The X position relative to left of the screen.It is not to be possible to position the window relative to the top left or relative to the center of the user’s screen. The Finder makes sure that the window will be on the user’s display, so if you want your window at the top left of the display you could use "x": 0, "y": 100000 as the x, y co-ordinates. With y co-ordinates running from bottom to top. Window - The DMG window position and size. ULFO (lzfse-compressed image (OS X 10.11+ only)). path String - The path of the file within the DMG.įormat = UDZO “UDRW” | “UDRO” | “UDCO” | “UDZO” | “UDBZ” | “ULFO” - The disk image format.name String - The name of the file within the DMG.y Number - The device-independent pixel offset from the top of the window to the center of the icon.x Number - The device-independent pixel offset from the left of the window to the center of the icon.The x and y coordinates refer to the position of the center of the icon (at 1x scale), and do not take the label into account. Title = $ are supported.Ĭontents Array - The content - to customize icon locations. IconTextSize = 12 Number | “undefined” - The size of all the icon texts inside the DMG. IconSize = 80 Number | “undefined” - The size of all the icons inside the DMG.

electron api make width of screen

Defaults to the application icon ( build/icon.icns). Icon String | “undefined” - The path to DMG icon (volume icon), which will be shown when mounted, relative to the build resources or to the project directory. Defaults to #ffffff (white) if no background image. See: DMG with Retina background support.īackgroundColor String | “undefined” - The background color (accepts css colors). Default locations expected background size to be 540x380. If background is not specified, use window.size. The resolution of this file determines the resolution of the installer window. The top-level dmg key contains set of options instructing electron-builder on how it should build DMG.īackground String | “undefined” - The path to background image (default: build/background.tiff or build/background.png if exists).











Electron api make width of screen