From 95f8d622c41bb77e3f7368da979cb6c15f236a95 Mon Sep 17 00:00:00 2001 From: taekchef Date: Sat, 22 Aug 2026 08:50:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A9=BA=E6=80=81=E9=A1=B5=20READ/CHAT?= =?UTF-8?q?/NOTE=20=E5=85=A5=E5=8F=A3=E9=9A=8F=E6=96=87=E5=AD=97=E6=A1=A3?= =?UTF-8?q?=E4=BD=8D=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 入口标题字体从裸 englishBrandFont(22) 改为 weiBeiEnglishBrandFont 缩放修饰符 - 按钮框 52、条宽 42/32/14、分隔线 18、tracking、悬停位移与间距全部乘档位倍率 - 入口排定位包络高度与问候-入口间距同步缩放,避免大档位重叠 --- .../Views/EmptyWorkspaceLauncherView.swift | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Sources/WeiBei/Views/EmptyWorkspaceLauncherView.swift b/Sources/WeiBei/Views/EmptyWorkspaceLauncherView.swift index 4fa0d8379..0b02391bf 100644 --- a/Sources/WeiBei/Views/EmptyWorkspaceLauncherView.swift +++ b/Sources/WeiBei/Views/EmptyWorkspaceLauncherView.swift @@ -87,7 +87,7 @@ struct EmptyWorkspaceLauncherView: View { 1, min(EmptyWorkspaceLayoutMetrics.contentMaxWidth, availableSize.width - horizontalPadding * 2) ) - let entryHeight: CGFloat = compact ? 84 : 98 + let entryHeight: CGFloat = (compact ? 84 : 98) * textScale let entryCenterRatio: CGFloat = store.showDailyInspiration ? EmptyWorkspaceLayoutMetrics.entryCenterRatio : 0.5 let entryCenterY = clampedCenterY( ratio: entryCenterRatio, @@ -113,7 +113,7 @@ struct EmptyWorkspaceLauncherView: View { entryCluster( at: date, compact: compact, - spacing: store.showDailyInspiration ? (compact ? 18 : 26) : (compact ? 16 : 29), + spacing: (store.showDailyInspiration ? (compact ? 18 : 26) : (compact ? 16 : 29)) * textScale, entryWidth: entryWidth ) .frame(width: contentWidth) @@ -257,6 +257,7 @@ struct EmptyWorkspacePaperField: View { private struct EmptyWorkspaceEntryRow: View { @EnvironmentObject private var store: WorkspaceStore + @Environment(\.weiBeiTextScale) private var textScale let entryWidth: CGFloat var body: some View { @@ -296,13 +297,14 @@ private struct EmptyWorkspaceEntryRow: View { private var entryDivider: some View { Rectangle() .fill(WeiBeiTheme.hairline.opacity(0.78)) - .frame(width: 1, height: 18) + .frame(width: 1, height: 18 * textScale) .accessibilityHidden(true) } } private struct EmptyWorkspaceEntryButton: View { @Environment(\.weibeiReduceMotion) private var reduceMotion + @Environment(\.weiBeiTextScale) private var textScale let title: String let accessibilityLabel: String @@ -317,26 +319,26 @@ private struct EmptyWorkspaceEntryButton: View { let active = focused || hovering Button(action: action) { - VStack(spacing: 2) { + VStack(spacing: 2 * textScale) { Text(title) - .font(WeiBeiTypography.englishBrandFont(size: 22, weight: .semibold)) - .tracking(active ? 3.5 : 2.2) + .weiBeiEnglishBrandFont(size: 22, weight: .semibold) + .tracking((active ? 3.5 : 2.2) * textScale) .foregroundStyle(active ? WeiBeiTheme.ink : WeiBeiTheme.secondaryInk.opacity(0.88)) - .offset(y: active && !reduceMotion ? -2.5 : 0) + .offset(y: active && !reduceMotion ? -2.5 * textScale : 0) ZStack { Rectangle() .fill(WeiBeiTheme.hairline.opacity(0.52)) - .frame(width: active ? 42 : 14, height: 1) + .frame(width: (active ? 42 : 14) * textScale, height: 1) Rectangle() .fill(WeiBeiTheme.ink.opacity(focused ? 0.64 : hovering ? 0.42 : 0)) - .frame(width: active ? 32 : 0, height: 1) + .frame(width: (active ? 32 : 0) * textScale, height: 1) } - .frame(height: 4) + .frame(height: 4 * textScale) .opacity(active ? 1 : 0.72) } - .frame(width: width, height: 52) + .frame(width: width * textScale, height: 52 * textScale) .contentShape(Rectangle()) } .buttonStyle(.plain)