summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_application.m
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r--osdep/macosx_application.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index a65910ec9e..fe117f7a1c 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -23,6 +23,7 @@
#include "common/msg.h"
#include "input/input.h"
#include "player/client.h"
+#include "options/m_config.h"
#import "osdep/macosx_application_objc.h"
#include "osdep/macosx_compat.h"
@@ -39,6 +40,21 @@
#define MPV_PROTOCOL @"mpv://"
+struct macos_opts {
+ int macos_title_bar_style;
+};
+
+#define OPT_BASE_STRUCT struct macos_opts
+const struct m_sub_options macos_conf = {
+ .opts = (const struct m_option[]) {
+ OPT_CHOICE("macos-title-bar-style", macos_title_bar_style, 0,
+ ({"dark", 0}, {"ultradark", 1}, {"light", 2},
+ {"mediumlight", 3}, {"auto", 4})),
+ {0}
+ },
+ .size = sizeof(struct macos_opts),
+};
+
// Whether the NSApplication singleton was created. If this is false, we are
// running in libmpv mode, and cocoa_main() was never called.
static bool application_instantiated;