diff options
author | der richter <der.richter@gmx.de> | 2019-03-29 20:38:02 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-04-02 02:09:01 +0300 |
commit | 837e5058ff110247229057f7ab182a041d1c98b8 (patch) | |
tree | 5946977ba0e69eede15d6a2e988dae2ac728876f /osdep/macosx_application.h | |
parent | 23f55569beda4ed53e4d85a12769ef41f05f96ca (diff) | |
download | mpv-837e5058ff110247229057f7ab182a041d1c98b8.tar.bz2 mpv-837e5058ff110247229057f7ab182a041d1c98b8.tar.xz |
cocoa-cb: refactor title bar styling
half of the materials we used were deprecated with macOS 10.14, broken
and not supported by run time changes of the macOS theme. furthermore
our styling names were completely inconsistent with the actually look
since macOS 10.14, eg ultradark got a lot brighter and couldn't be
considered ultradark anymore.
i decided to drop the old option --macos-title-bar-style and rework
the whole mechanism to allow more freedom. now materials and appearance
can be set separately. even if apple changes the look or semantics in
the future the new options can be easily adapted.
Diffstat (limited to 'osdep/macosx_application.h')
-rw-r--r-- | osdep/macosx_application.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/macosx_application.h b/osdep/macosx_application.h index 0301e49fcb..5f33a384f2 100644 --- a/osdep/macosx_application.h +++ b/osdep/macosx_application.h @@ -22,6 +22,8 @@ struct macos_opts { int macos_title_bar_style; + int macos_title_bar_appearance; + int macos_title_bar_material; int macos_fs_animation_duration; int cocoa_cb_sw_renderer; }; |