summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_cb_common.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2019-03-29 20:39:42 +0100
committerJan Ekström <jeebjp@gmail.com>2019-04-02 02:09:01 +0300
commit90e44d3ff2182749da8d7d255bef15fd99c18eee (patch)
treea20a2aa8bb26e8b9340aecb96cc9085b1475a2f9 /video/out/cocoa_cb_common.swift
parent837e5058ff110247229057f7ab182a041d1c98b8 (diff)
downloadmpv-90e44d3ff2182749da8d7d255bef15fd99c18eee.tar.bz2
mpv-90e44d3ff2182749da8d7d255bef15fd99c18eee.tar.xz
cocoa-cb: add support for custom colored title bar
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r--video/out/cocoa_cb_common.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift
index a3fabd0324..f545e72a3d 100644
--- a/video/out/cocoa_cb_common.swift
+++ b/video/out/cocoa_cb_common.swift
@@ -521,6 +521,10 @@ class CocoaCB: NSObject {
if let data = MPVHelper.mpvStringArrayToString(property.data) {
titleBar.set(material: data)
}
+ case "macos-title-bar-color":
+ if let data = MPVHelper.mpvStringArrayToString(property.data) {
+ titleBar.set(color: data)
+ }
default:
break
}