From 23821ac2c01c9e0c49aa599c3b883eec5c7a1dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Qu=E1=BB=91c=20=C4=90=E1=BA=A1t?= Date: Fri, 3 Apr 2026 08:53:58 +0700 Subject: [PATCH] fix: smooth sync icon animation and remove connect shortcut hint --- TablePro/Views/Components/SyncStatusIndicator.swift | 4 ++++ TablePro/Views/Connection/WelcomeLeftPanel.swift | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TablePro/Views/Components/SyncStatusIndicator.swift b/TablePro/Views/Components/SyncStatusIndicator.swift index a40eb7757..e6ff781c9 100644 --- a/TablePro/Views/Components/SyncStatusIndicator.swift +++ b/TablePro/Views/Components/SyncStatusIndicator.swift @@ -19,10 +19,14 @@ struct SyncStatusIndicator: View { } label: { HStack(spacing: 4) { Image(systemName: iconName) + .contentTransition(.symbolEffect(.replace)) + .symbolEffect(.pulse, isActive: syncCoordinator.syncStatus.isSyncing) Text(statusLabel) + .contentTransition(.numericText()) } .font(.system(size: ThemeEngine.shared.activeTheme.typography.small)) .foregroundStyle(foregroundStyle) + .animation(.default, value: syncCoordinator.syncStatus) } .buttonStyle(.plain) .help(helpText) diff --git a/TablePro/Views/Connection/WelcomeLeftPanel.swift b/TablePro/Views/Connection/WelcomeLeftPanel.swift index da33b4279..b2bec2328 100644 --- a/TablePro/Views/Connection/WelcomeLeftPanel.swift +++ b/TablePro/Views/Connection/WelcomeLeftPanel.swift @@ -73,13 +73,11 @@ struct WelcomeLeftPanel: View { ViewThatFits(in: .horizontal) { HStack(spacing: 12) { SyncStatusIndicator() - KeyboardHint(keys: "↵", label: "Connect") KeyboardHint(keys: "⌘N", label: "New") KeyboardHint(keys: "⌘,", label: "Settings") } HStack(spacing: 8) { SyncStatusIndicator() - KeyboardHint(keys: "↵", label: "Connect") KeyboardHint(keys: "⌘N", label: "New") KeyboardHint(keys: "⌘,", label: nil) }