From eec7200db46fdfcdb61daaee445a7273852a3b7e Mon Sep 17 00:00:00 2001 From: Miltiadis Vasilakis Date: Thu, 5 Sep 2024 16:35:07 +0300 Subject: [PATCH] Fix item detail title font --- Zotero/Scenes/Detail/ItemDetail/Models/ItemDetailState.swift | 2 +- .../Detail/ItemDetail/Views/ItemDetailTitleContentView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zotero/Scenes/Detail/ItemDetail/Models/ItemDetailState.swift b/Zotero/Scenes/Detail/ItemDetail/Models/ItemDetailState.swift index 0f33db4fc..1c0c75aad 100644 --- a/Zotero/Scenes/Detail/ItemDetail/Models/ItemDetailState.swift +++ b/Zotero/Scenes/Detail/ItemDetail/Models/ItemDetailState.swift @@ -265,7 +265,7 @@ struct ItemDetailState: ViewModelState { var preScrolledChildKey: String? var hideController: Bool var titleFont: UIFont { - return .preferredFont(for: .headline, weight: .regular) + return .preferredFont(forTextStyle: .title1) } @UserDefault(key: "ItemDetailAbstractCollapsedKey", defaultValue: false) diff --git a/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift b/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift index b4a8a0886..e1ad98a03 100644 --- a/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift +++ b/Zotero/Scenes/Detail/ItemDetail/Views/ItemDetailTitleContentView.swift @@ -30,7 +30,7 @@ final class ItemDetailTitleContentView: UIView { setupObservers() func setup() { - let font: UIFont = .preferredFont(for: .headline, weight: .regular) + let font: UIFont = .preferredFont(forTextStyle: .title1) let textView = FormattedTextView(defaultFont: font) textView.textContainerInset = UIEdgeInsets() textView.textContainer.lineFragmentPadding = 0