cocoa-cb: change border and borderless window styling

the title bar is now within the window bounds instead of outside. same
as QuickTime Player. it supports several standard styles, two dark and
two light ones. additionally we have properly rounded corners now and
the borderless window also has the proper window shadow.

Also make the earliest supported macOS version 10.10.

Fixes #4789, #3944
This commit is contained in:
Akemi
2018-02-16 13:07:15 +01:00
committed by Kevin Mitchell
parent a4c436bac2
commit 938ad6ebc0
9 changed files with 158 additions and 20 deletions

View File

@@ -4852,6 +4852,18 @@ The following video options are currently all specific to ``--vo=gpu`` and
OS X only.
``--macos-title-bar-style=<dark|ultradark|light|mediumlight|auto>``
Sets the styling of the title bar (default: dark).
OS X and cocoa-cb only
:dark: Dark title bar with vibrancy, a subtle blurring effect that
dynamically blends the background (Video) into the title bar.
:ultradark: Darker title bar with vibrancy (like QuickTime Player).
:light: Bright title bar with vibrancy.
:mediumlight: Less bright title bar with vibrancy.
:auto: Detects the system settings and sets the title bar styling
appropriately, either ultradark or mediumlight.
``--android-surface-size=<WxH>``
Set dimensions of the rendering surface used by the Android gpu context.
Needs to be set by the embedding application if the dimensions change during