marinofaggiana %!s(int64=6) %!d(string=hai) anos
pai
achega
3c3aa378db

+ 9 - 0
iOSClient/Media/NCMedia.swift

@@ -469,6 +469,15 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
                 header.setTitleLabel(sectionDatasource: sectionDatasource, section: indexPath.section)
                 header.labelSectionHeightConstraint.constant = sectionHeaderHeight
                 
+                header.labelSection.font = UIFont.boldSystemFont(ofSize: 16)
+                header.labelSection.textColor = .white
+                header.labelSection.textAlignment = .center
+                header.labelSection.layer.cornerRadius = 11
+                header.labelSection.layer.masksToBounds = true
+                header.labelSection.layer.backgroundColor = UIColor(red: 152.0/255.0, green: 167.0/255.0, blue: 181.0/255.0, alpha: 0.8).cgColor
+                let widthFrame = header.labelSection.intrinsicContentSize.width + 30
+                let xFrame = collectionView.bounds.width / 2 - widthFrame / 2
+                header.labelSection.frame = CGRect(x: xFrame, y: 10, width: widthFrame, height: 22)
                 return header
             
             } else {

+ 3 - 4
iOSClient/Media/NCSectionMediaHeaderMenu.xib

@@ -80,17 +80,16 @@
                     <rect key="frame" x="0.0" y="113" width="375" height="50"/>
                     <subviews>
                         <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PVg-rp-dMy">
-                            <rect key="frame" x="10" y="18" width="355" height="14.5"/>
+                            <rect key="frame" x="172" y="18" width="31" height="14.5"/>
                             <fontDescription key="fontDescription" type="system" pointSize="12"/>
                             <nil key="textColor"/>
                             <nil key="highlightedColor"/>
                         </label>
                     </subviews>
                     <constraints>
-                        <constraint firstAttribute="trailing" secondItem="PVg-rp-dMy" secondAttribute="trailing" constant="10" id="Rup-Kj-YB9"/>
-                        <constraint firstItem="PVg-rp-dMy" firstAttribute="leading" secondItem="NC1-5C-E5z" secondAttribute="leading" constant="10" id="VT2-KQ-3Rs"/>
+                        <constraint firstItem="PVg-rp-dMy" firstAttribute="centerX" secondItem="NC1-5C-E5z" secondAttribute="centerX" id="8mS-yv-Aux"/>
+                        <constraint firstItem="PVg-rp-dMy" firstAttribute="centerY" secondItem="NC1-5C-E5z" secondAttribute="centerY" id="R6D-jH-9TC"/>
                         <constraint firstAttribute="height" constant="50" id="eT3-4m-mJ6"/>
-                        <constraint firstItem="PVg-rp-dMy" firstAttribute="centerY" secondItem="NC1-5C-E5z" secondAttribute="centerY" id="kJS-Jt-w50"/>
                     </constraints>
                 </view>
             </subviews>