commit 0b9be197dd29af886fcfc2131d89f3044f3270e5
parent d37a68e6d9928b43c159dd3dacdfb04a71dd56ec
Author: Michael Camilleri <[email protected]>
Date: Fri, 27 Feb 2026 22:26:12 +0900
Fix pull-to-create font size
Co-Authored-By: Codex GPT 5.3 <[email protected]>
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ListlessiOS/Helpers/TaskRowMetrics.swift b/ListlessiOS/Helpers/TaskRowMetrics.swift
@@ -7,13 +7,15 @@ enum TaskRowMetrics {
static let bodyUIK: UIFont = UIFontMetrics(forTextStyle: .body)
.scaledFont(for: .systemFont(ofSize: 18))
/// SwiftUI equivalent for use in pure SwiftUI views (e.g. PullToCreate).
- static let bodySUI: Font = .system(size: 18, weight: .regular)
+ /// Uses Dynamic Type scaling to match bodyUIK (18pt base, scaled relative to .body).
+ static let bodySUI: Font = Font(bodyUIK)
/// Hint font (17pt), scaled by Dynamic Type.
static let hintUIK: UIFont = UIFontMetrics(forTextStyle: .body)
.scaledFont(for: .systemFont(ofSize: 17))
/// SwiftUI equivalent for use in pure SwiftUI views.
- static let hintSUI: Font = .system(size: 17, weight: .regular)
+ /// Uses Dynamic Type scaling to match hintUIK (17pt base, scaled relative to .body).
+ static let hintSUI: Font = Font(hintUIK)
static let accentBarWidth: CGFloat = 8
static let trailingCornerRadius: CGFloat = 14
diff --git a/ListlessiOS/Views/PullToCreate.swift b/ListlessiOS/Views/PullToCreate.swift
@@ -16,9 +16,8 @@ struct PullToCreateIndicator: View {
.frame(width: TaskRowMetrics.accentBarWidth)
HStack(alignment: .center, spacing: TaskRowMetrics.contentSpacing) {
Image(systemName: "circle")
- .foregroundStyle(.secondary)
+ .foregroundStyle(Color.secondary)
.font(.system(size: 17))
- .fontWeight(.thin)
ZStack(alignment: .leading) {
Text("Release to add")
.offset(y: isReady ? 0 : -textSlideDistance)