[vlc-commits] macosx: Use NSButton subclass for badge drawing

Marvin Scholz git at videolan.org
Wed Aug 26 16:28:26 CEST 2020


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Aug 18 18:49:55 2018 +0200| [8a3d78265fed870192d2547346abe8fc2497a08f] | committer: Marvin Scholz

macosx: Use NSButton subclass for badge drawing

For badges in source lists a NSInlineBezelStyle button should be used
according to the documentation. This greatly improves the look of the
badge, especially in selected state and Dark Aqua.

(cherry picked from commit 9385e8ba801e1a3baee3580f29e011e162b7d993)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

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

 modules/gui/macosx/Makefile.am                  |  2 +
 modules/gui/macosx/UI/MainWindow.xib            | 28 ++++++-----
 modules/gui/macosx/VLCMainWindow.m              | 10 ++--
 modules/gui/macosx/VLCSourceListBadgeButton.h   | 34 +++++++++++++
 modules/gui/macosx/VLCSourceListBadgeButton.m   | 65 +++++++++++++++++++++++++
 modules/gui/macosx/VLCSourceListTableCellView.h | 35 +++++++++++++
 modules/gui/macosx/VLCSourceListTableCellView.m | 28 +++++++++++
 7 files changed, 186 insertions(+), 16 deletions(-)

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


More information about the vlc-commits mailing list