Skip to content

Commit

Permalink
feat(FilesHeaderView): Using TextStyle with IKLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Feb 12, 2025
1 parent f9bd1cb commit 2cf4338
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions kDrive/UI/View/Header view/FilesHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/

import InfomaniakCore
import InfomaniakCoreCommonUI
import InfomaniakCoreUIKit
import InfomaniakDI
import kDriveCore
import kDriveResources
Expand Down Expand Up @@ -49,8 +51,8 @@ class FilesHeaderView: UICollectionReusableView {
@IBOutlet var activityAvatar: UIImageView!
@IBOutlet var activityLabel: UILabel!
@IBOutlet var trashInformationView: UIView!
@IBOutlet var trashInformationTitle: UILabel!
@IBOutlet var trashInformationSubtitle: UILabel!
@IBOutlet var trashInformationTitle: IKLabel!
@IBOutlet var trashInformationSubtitle: IKLabel!
@IBOutlet var trashInformationChip: UIView!
var selectView: SelectView!

Expand Down Expand Up @@ -92,9 +94,9 @@ class FilesHeaderView: UICollectionReusableView {
private func setupTrashView() {
trashInformationView.isHidden = true

trashInformationTitle.font = .systemFont(ofSize: 14)
trashInformationTitle.font = TextStyle.body1.font
trashInformationTitle.textColor = KDriveResourcesAsset.headerTitleColor.color
trashInformationSubtitle.font = .systemFont(ofSize: 14)
trashInformationSubtitle.font = TextStyle.body1.font
trashInformationSubtitle.textColor = KDriveResourcesAsset.infomaniakColor.color

trashInformationTitle.text = KDriveResourcesStrings.Localizable.trashAutoClearDescription
Expand Down
4 changes: 2 additions & 2 deletions kDrive/UI/View/Header view/FilesHeaderView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<constraint firstAttribute="height" constant="20" id="ZN1-eq-bJp"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QgE-e7-AZW">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QgE-e7-AZW" customClass="IKLabel" customModule="InfomaniakCoreUIKit">
<rect key="frame" x="32" y="0.0" width="240" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lop-v5-aTk">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lop-v5-aTk" customClass="IKLabel" customModule="InfomaniakCoreUIKit">
<rect key="frame" x="32" y="28.5" width="41.5" height="69.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
Expand Down

0 comments on commit 2cf4338

Please sign in to comment.