[vlc-commits] [Git][videolan/vlc][master] macosx: Resize and move action buttons within collection view item

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Thu Jun 11 13:04:33 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
15956dde by Claudio Cambra at 2026-06-11T14:43:12+02:00
macosx: Resize and move action buttons within collection view item

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

- - - - -


1 changed file:

- modules/gui/macosx/UI/VLCLibraryCollectionViewItem.xib


Changes:

=====================================
modules/gui/macosx/UI/VLCLibraryCollectionViewItem.xib
=====================================
@@ -38,21 +38,9 @@
                                 <constraint firstAttribute="height" constant="4" id="lyQ-kl-gVk"/>
                             </constraints>
                         </customView>
-                        <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="S3I-5Z-qgS">
-                            <rect key="frame" x="72" y="72" width="64" height="64"/>
-                            <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="libraryPlay" imagePosition="only" alignment="center" inset="2" id="IHP-p1-d0R">
-                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                <font key="font" metaFont="system"/>
-                            </buttonCell>
-                            <connections>
-                                <action selector="playInstantly:" target="-2" id="E2B-oj-rx3"/>
-                            </connections>
-                        </button>
                     </subviews>
                     <constraints>
                         <constraint firstAttribute="bottom" secondItem="dFt-oZ-h9P" secondAttribute="bottom" id="4q3-3S-7PA"/>
-                        <constraint firstItem="S3I-5Z-qgS" firstAttribute="centerX" secondItem="2aB-sB-hfY" secondAttribute="centerX" id="Seo-tS-piW"/>
-                        <constraint firstItem="S3I-5Z-qgS" firstAttribute="centerY" secondItem="2aB-sB-hfY" secondAttribute="centerY" id="ZWU-oW-OVa"/>
                         <constraint firstAttribute="width" secondItem="2aB-sB-hfY" secondAttribute="height" multiplier="1:1" id="f7c-vp-30m"/>
                         <constraint firstItem="dFt-oZ-h9P" firstAttribute="leading" secondItem="2aB-sB-hfY" secondAttribute="leading" id="gTe-sx-hdP"/>
                         <constraint firstAttribute="trailing" secondItem="dFt-oZ-h9P" secondAttribute="trailing" id="kBI-UU-vnc"/>
@@ -83,27 +71,37 @@
                     </textFieldCell>
                 </textField>
                 <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ubz-8I-W2F">
-                    <rect key="frame" x="182" y="218" width="20" height="20"/>
+                    <rect key="frame" x="170" y="206" width="32" height="32"/>
                     <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="ellipsis" imagePosition="only" alignment="center" inset="2" id="6ko-MM-ds0">
                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                         <font key="font" metaFont="system"/>
                     </buttonCell>
                     <constraints>
-                        <constraint firstAttribute="width" constant="20" id="XhX-7U-Nxj"/>
-                        <constraint firstAttribute="height" constant="20" id="ZDT-YM-Cbr"/>
+                        <constraint firstAttribute="width" constant="32" id="XhX-7U-Nxj"/>
+                        <constraint firstAttribute="height" constant="32" id="ZDT-YM-Cbr"/>
                     </constraints>
                     <connections>
                         <action selector="addToPlayQueue:" target="-2" id="2C9-Rn-VAb"/>
                     </connections>
                 </button>
                 <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tm2-NW-WsZ" customClass="VLCRoundedCornerTextField">
-                    <rect key="frame" x="6" y="220" width="37" height="16"/>
+                    <rect key="frame" x="3" y="222" width="37" height="16"/>
                     <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="tyb-Ur-7J9">
                         <font key="font" metaFont="system"/>
                         <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                     </textFieldCell>
                 </textField>
+                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="S3I-5Z-qgS">
+                    <rect key="frame" x="170" y="41" width="32" height="32"/>
+                    <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="libraryPlay" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="IHP-p1-d0R">
+                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                        <font key="font" metaFont="system"/>
+                    </buttonCell>
+                    <connections>
+                        <action selector="playInstantly:" target="-2" id="E2B-oj-rx3"/>
+                    </connections>
+                </button>
                 <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="VAn-gF-QiZ">
                     <rect key="frame" x="-2" y="0.0" width="175" height="16"/>
                     <textFieldCell key="cell" lineBreakMode="truncatingTail" title="Label" id="LSS-jh-llZ">
@@ -116,6 +114,7 @@
             <constraints>
                 <constraint firstItem="2aB-sB-hfY" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="3Ah-0T-rA9"/>
                 <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="OBS-Eh-1mT" secondAttribute="trailing" id="457-oy-EbD"/>
+                <constraint firstItem="S3I-5Z-qgS" firstAttribute="centerX" secondItem="Ubz-8I-W2F" secondAttribute="centerX" id="68y-W7-440"/>
                 <constraint firstItem="Ubz-8I-W2F" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="5" id="8Qf-Un-Gdl"/>
                 <constraint firstItem="VAn-gF-QiZ" firstAttribute="top" secondItem="OBS-Eh-1mT" secondAttribute="bottom" id="ALi-0z-Mza"/>
                 <constraint firstAttribute="trailing" secondItem="u2r-zy-XEW" secondAttribute="trailing" id="Dd7-va-0UJ"/>
@@ -127,10 +126,13 @@
                 <constraint firstItem="Vwd-1n-Sbd" firstAttribute="leading" secondItem="2aB-sB-hfY" secondAttribute="leading" id="Yqz-VL-Ul7"/>
                 <constraint firstAttribute="trailing" secondItem="Ubz-8I-W2F" secondAttribute="trailing" constant="5" id="ZVz-SL-rxZ"/>
                 <constraint firstAttribute="trailing" secondItem="VAn-gF-QiZ" secondAttribute="trailing" priority="750" id="Zci-25-m59"/>
+                <constraint firstItem="S3I-5Z-qgS" firstAttribute="height" secondItem="Ubz-8I-W2F" secondAttribute="height" id="ebY-C1-rqR"/>
+                <constraint firstItem="tm2-NW-WsZ" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="5" id="fH0-Om-7gV"/>
                 <constraint firstItem="Vwd-1n-Sbd" firstAttribute="trailing" secondItem="2aB-sB-hfY" secondAttribute="trailing" id="fag-50-6qS"/>
-                <constraint firstItem="tm2-NW-WsZ" firstAttribute="centerY" secondItem="Ubz-8I-W2F" secondAttribute="centerY" id="gQI-nK-lpw"/>
+                <constraint firstItem="S3I-5Z-qgS" firstAttribute="bottom" secondItem="2aB-sB-hfY" secondAttribute="bottom" constant="-5" id="h4v-EY-DXJ"/>
+                <constraint firstItem="tm2-NW-WsZ" firstAttribute="top" secondItem="Ubz-8I-W2F" secondAttribute="top" id="ijs-lM-2TM"/>
+                <constraint firstItem="S3I-5Z-qgS" firstAttribute="width" secondItem="Ubz-8I-W2F" secondAttribute="width" id="nec-vk-CLK"/>
                 <constraint firstAttribute="trailing" secondItem="2aB-sB-hfY" secondAttribute="trailing" id="oZw-Ab-83p"/>
-                <constraint firstItem="tm2-NW-WsZ" firstAttribute="leading" secondItem="HJG-tt-Xh8" secondAttribute="leading" constant="5" id="rnK-Cu-EMG"/>
                 <constraint firstItem="Vwd-1n-Sbd" firstAttribute="bottom" secondItem="2aB-sB-hfY" secondAttribute="bottom" id="sIE-go-0nP"/>
                 <constraint firstItem="2aB-sB-hfY" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="t9g-tX-AQX"/>
                 <constraint firstItem="OBS-Eh-1mT" firstAttribute="top" secondItem="2aB-sB-hfY" secondAttribute="bottom" constant="4" id="vJy-Kf-4Jh"/>



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15956dde0234721719e30792ebcc2642911ede92

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15956dde0234721719e30792ebcc2642911ede92
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