[vlc-commits] [Git][videolan/vlc][master] macosx: Use glass effect for hero view button

Marvin Scholz (@ePirat) gitlab at videolan.org
Tue Oct 13 18:11:32 UTC 2026



Marvin Scholz pushed to branch master at VideoLAN / VLC


Commits:
75cfef75 by Claudio Cambra at 2026-10-14T01:57:48+08:00
macosx: Use glass effect for hero view button

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryHeroView.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryHeroView.m
=====================================
@@ -54,6 +54,13 @@
     if (@available(macOS 10.14, *)) {
         self.playButton.contentTintColor = NSColor.VLCAccentColor;
     }
+#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 260000
+    if (@available(macOS 26.0, *)) {
+        self.playButton.bordered = YES;
+        self.playButton.bezelStyle = NSBezelStyleGlass;
+        self.playButton.borderShape = NSControlBorderShapeCapsule;
+    }
+#endif
     self.titleTextField.font = NSFont.VLCLibrarySubsectionHeaderFont;
     self.titleTextField.maximumNumberOfLines = 3;
     self.detailTextField.font = NSFont.VLCLibrarySubsectionSubheaderFont;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/75cfef757d3fa4ac36a667fd738d8253a88bb393

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/75cfef757d3fa4ac36a667fd738d8253a88bb393
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list