[vlc-commits] macosx: Fix correct reinitialization of most of our buttons

David Fuhrmann git at videolan.org
Sun Dec 16 20:17:49 CET 2018


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Tue Dec  4 18:58:05 2018 +0100| [97557b77f6fb2feb128066bd7e5bf72b085c98f6] | committer: David Fuhrmann

macosx: Fix correct reinitialization of most of our buttons

The button graphics were totally wrong if appearance changed in
the middle of the program. Also on startup, some graphics were wrong.
Factor out the code and use the same in all cases.

Also fix automatic appearance switching for volume slider, set
darkMode variable correctly, and fix appearance if setting was dark
mode and the OS mode is bright.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=97557b77f6fb2feb128066bd7e5bf72b085c98f6
---

 modules/gui/macosx/VLCControlsBarCommon.m     |  4 +-
 modules/gui/macosx/VLCMainMenu.m              |  6 +--
 modules/gui/macosx/VLCMainWindowControlsBar.h |  6 +--
 modules/gui/macosx/VLCMainWindowControlsBar.m | 70 ++++++---------------------
 modules/gui/macosx/VLCSlider.m                |  2 +
 modules/gui/macosx/VLCVolumeSlider.m          |  2 +
 modules/gui/macosx/VLCVolumeSliderCell.m      |  3 ++
 7 files changed, 30 insertions(+), 63 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commitdiff;h=97557b77f6fb2feb128066bd7e5bf72b085c98f6


More information about the vlc-commits mailing list