Skip to content

Commit cb649bd

Browse files
authored
fix: smooth sync icon animation and remove connect shortcut hint (#560)
1 parent a7d5310 commit cb649bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TablePro/Views/Components/SyncStatusIndicator.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ struct SyncStatusIndicator: View {
1919
} label: {
2020
HStack(spacing: 4) {
2121
Image(systemName: iconName)
22+
.contentTransition(.symbolEffect(.replace))
23+
.symbolEffect(.pulse, isActive: syncCoordinator.syncStatus.isSyncing)
2224
Text(statusLabel)
25+
.contentTransition(.numericText())
2326
}
2427
.font(.system(size: ThemeEngine.shared.activeTheme.typography.small))
2528
.foregroundStyle(foregroundStyle)
29+
.animation(.default, value: syncCoordinator.syncStatus)
2630
}
2731
.buttonStyle(.plain)
2832
.help(helpText)

TablePro/Views/Connection/WelcomeLeftPanel.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ struct WelcomeLeftPanel: View {
7373
ViewThatFits(in: .horizontal) {
7474
HStack(spacing: 12) {
7575
SyncStatusIndicator()
76-
KeyboardHint(keys: "", label: "Connect")
7776
KeyboardHint(keys: "⌘N", label: "New")
7877
KeyboardHint(keys: "⌘,", label: "Settings")
7978
}
8079
HStack(spacing: 8) {
8180
SyncStatusIndicator()
82-
KeyboardHint(keys: "", label: "Connect")
8381
KeyboardHint(keys: "⌘N", label: "New")
8482
KeyboardHint(keys: "⌘,", label: nil)
8583
}

0 commit comments

Comments
 (0)