Skip to content

Commit 2ebc58d

Browse files
graycreateclaude
andcommitted
feat: Add green indicator dot to online user count
Add a small green dot (#52bf1c) to the left of the online user count text in the pull-to-refresh indicator for better visual indication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 06d1675 commit 2ebc58d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

V2er/View/Widget/Updatable/HeadIndicatorView.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ struct HeadIndicatorView: View {
3737
}
3838

3939
if let stats = onlineStats, stats.isValid() {
40-
Text("\(stats.onlineCount) 人在线")
41-
.font(.caption)
42-
.foregroundColor(.secondaryText)
40+
HStack(spacing: 4) {
41+
Circle()
42+
.fill(Color.hex(0x52bf1c))
43+
.frame(width: 6, height: 6)
44+
Text("\(stats.onlineCount) 人在线")
45+
.font(.caption)
46+
.foregroundColor(.secondaryText)
47+
}
4348
}
4449
}
4550
.frame(height: height)

0 commit comments

Comments
 (0)