[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Reinstate floating play queue footer on macOS 26+
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Apr 2 12:15:25 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b8133da6 by Claudio Cambra at 2026-04-02T11:55:14+00:00
macosx: Reinstate floating play queue footer on macOS 26+
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
6bb648fc by Claudio Cambra at 2026-04-02T11:55:14+00:00
macosx: Ensure we still show a play queue sidebar footer when building on macOS <26 but are running on macOS >=26
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryWindowPlayQueueSidebarViewController.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryWindowPlayQueueSidebarViewController.m
=====================================
@@ -133,6 +133,45 @@
const CGFloat footerHeight = self.footerContainerView.frame.size.height;
[self setupScrollViewGradientMask];
+#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 260000
+ if (@available(macOS 26.0, *)) {
+ [self.bottomButtonsSeparator removeFromSuperview];
+
+ NSGlassEffectView * const glassFooterView = [[NSGlassEffectView alloc] init];
+ glassFooterView.translatesAutoresizingMaskIntoConstraints = NO;
+ glassFooterView.contentView = self.buttonStack;
+ glassFooterView.cornerRadius = CGFLOAT_MAX;
+
+ self.footerContainerView.subviews = @[glassFooterView];
+ self.footerContainerView.clipsToBounds = NO;
+ [glassFooterView applyConstraintsToFillSuperview];
+
+ self.buttonStack.edgeInsets = NSEdgeInsetsMake(
+ VLCLibraryUIUnits.mediumSpacing,
+ VLCLibraryUIUnits.largeSpacing,
+ VLCLibraryUIUnits.mediumSpacing,
+ VLCLibraryUIUnits.largeSpacing
+ );
+
+ self.scrollViewDefaultBottomConstraint.active = NO;
+ self.footerContainerViewDefaultBottomConstraint.active = NO;
+ self.footerContainerViewLeadingConstraint.constant = VLCLibraryUIUnits.largeSpacing;
+ self.footerContainerViewTrailingConstraint.constant = VLCLibraryUIUnits.largeSpacing;
+
+ NSLayoutConstraint * const footerBottomConstraint =
+ [self.buttonStack.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor
+ constant:-VLCLibraryUIUnits.largeSpacing];
+
+ [NSLayoutConstraint activateConstraints:@[
+ [self.scrollView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor],
+ footerBottomConstraint
+ ]];
+
+ const CGFloat footerTopLine = footerHeight + -footerBottomConstraint.constant + VLCLibraryUIUnits.smallSpacing;
+ self.scrollView.automaticallyAdjustsContentInsets = NO;
+ self.scrollView.contentInsets = NSEdgeInsetsMake(0, 0, footerTopLine, 0);
+ } else
+#endif
if (@available(macOS 10.14, *)) {
NSVisualEffectView * const footerBlurView = [[NSVisualEffectView alloc] initWithFrame:self.footerContainerView.bounds];
footerBlurView.translatesAutoresizingMaskIntoConstraints = NO;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ae660a1cea4de6242832ed214deeab4cceee243c...6bb648fcc603e4dfb03040b978db228e12383948
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ae660a1cea4de6242832ed214deeab4cceee243c...6bb648fcc603e4dfb03040b978db228e12383948
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list