[vlc-commits] [Git][videolan/vlc][master] 3 commits: macosx: Limit trailing edge of hero view stack view

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun May 12 14:50:12 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
a85531c4 by Claudio Cambra at 2024-05-12T14:28:22+00:00
macosx: Limit trailing edge of hero view stack view

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

- - - - -
8d1c820b by Claudio Cambra at 2024-05-12T14:28:22+00:00
macosx: Lower compression resistance priority of stack view components

Prevents the child views of the stack view resizing the stack view past the size of the super view

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

- - - - -
7f94bd85 by Claudio Cambra at 2024-05-12T14:28:22+00:00
macosx: Limit detail string for hero view to one line

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/UI/VLCLibraryHeroView.xib
=====================================
@@ -29,7 +29,7 @@
                 <stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="U3j-Zx-fFf">
                     <rect key="frame" x="20" y="20" width="250" height="86"/>
                     <subviews>
-                        <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kFW-i6-3hg">
+                        <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kFW-i6-3hg">
                             <rect key="frame" x="-2" y="58" width="103" height="28"/>
                             <shadow key="shadow" blurRadius="20">
                                 <color key="color" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -40,19 +40,19 @@
                                 <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                             </textFieldCell>
                         </textField>
-                        <textField horizontalHuggingPriority="251" verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="aVp-p4-DHX">
+                        <textField horizontalHuggingPriority="251" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="aVp-p4-DHX">
                             <rect key="frame" x="-2" y="33" width="139" height="20"/>
                             <shadow key="shadow" blurRadius="20">
                                 <color key="color" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                             </shadow>
-                            <textFieldCell key="cell" controlSize="large" title="Item detail string" id="P7c-bg-dPX">
+                            <textFieldCell key="cell" controlSize="large" lineBreakMode="truncatingTail" truncatesLastVisibleLine="YES" title="Item detail string" usesSingleLineMode="YES" id="P7c-bg-dPX">
                                 <font key="font" metaFont="systemSemibold" size="17"/>
                                 <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
                                 <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                             </textFieldCell>
                         </textField>
-                        <button verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="5zZ-VM-Lb9">
-                            <rect key="frame" x="-3" y="-4" width="256" height="35"/>
+                        <button verticalHuggingPriority="1000" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="5zZ-VM-Lb9">
+                            <rect key="frame" x="-3" y="-4" width="179" height="35"/>
                             <buttonCell key="cell" type="bevel" title=" Resume playing" bezelStyle="regularSquare" image="play.circle.fill" catalog="system" imagePosition="leading" alignment="left" controlSize="large" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="639-6i-zsD">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="systemSemibold" size="17"/>
@@ -86,6 +86,7 @@
                 <constraint firstItem="qdP-As-qZ0" firstAttribute="top" secondItem="LPV-K6-7AE" secondAttribute="top" id="9aA-Ma-Vvy"/>
                 <constraint firstItem="U3j-Zx-fFf" firstAttribute="leading" secondItem="LPV-K6-7AE" secondAttribute="leading" constant="20" symbolic="YES" id="A9P-6v-TYB"/>
                 <constraint firstAttribute="bottom" secondItem="U3j-Zx-fFf" secondAttribute="bottom" constant="20" id="GKS-hS-EhI"/>
+                <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="U3j-Zx-fFf" secondAttribute="trailing" constant="20" id="Nzn-Md-2Xx"/>
                 <constraint firstItem="GoN-QI-mru" firstAttribute="leading" secondItem="LPV-K6-7AE" secondAttribute="leading" constant="20" id="UTF-IS-5xp"/>
                 <constraint firstItem="U3j-Zx-fFf" firstAttribute="top" relation="greaterThanOrEqual" secondItem="GoN-QI-mru" secondAttribute="bottom" constant="20" id="ZCB-XT-8xc"/>
                 <constraint firstAttribute="bottom" secondItem="qdP-As-qZ0" secondAttribute="bottom" id="lyx-Ea-nZ1"/>



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/928e8fea7d1ed8c0917da12d32d960cab55e40a9...7f94bd8563c1f212b2389b679c26e8b54a35391a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/928e8fea7d1ed8c0917da12d32d960cab55e40a9...7f94bd8563c1f212b2389b679c26e8b54a35391a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list