Skip to content

Commit 1b3a0b2

Browse files
fserrclaude
andcommitted
Fix menu bar timer appearance - crisp border and text
- Use strokeBorder for cleaner edge rendering - Explicit black/white text color instead of .primary - Adjusted corner radius and styling Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f43f405 commit 1b3a0b2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Flow/Views/MenuBarView.swift

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@ struct MenuBarView: View {
99
}
1010

1111
private var textColor: Color {
12-
timerManager.currentPhase.isBreak ? .white : .primary
12+
if timerManager.currentPhase.isBreak {
13+
return .white
14+
} else {
15+
return colorScheme == .dark ? .white : .black
16+
}
1317
}
1418

1519
var body: some View {
1620
Text(timerManager.formattedTime)
17-
.font(.system(size: 11, weight: .medium, design: .default))
21+
.font(.system(size: 11, weight: .regular, design: .default))
1822
.foregroundColor(textColor)
1923
.padding(.horizontal, 4)
2024
.padding(.vertical, 1)
2125
.background(
22-
RoundedRectangle(cornerRadius: 4)
26+
RoundedRectangle(cornerRadius: 4, style: .continuous)
2327
.fill(timerManager.currentPhase.backgroundColor)
24-
)
25-
.overlay(
26-
RoundedRectangle(cornerRadius: 6)
27-
.stroke(borderColor, lineWidth: timerManager.currentPhase == .work ? 0.5 : 0)
28+
.overlay(
29+
RoundedRectangle(cornerRadius: 5, style: .continuous)
30+
.strokeBorder(borderColor, lineWidth: timerManager.currentPhase == .work ? 1 : 0)
31+
)
2832
)
2933
}
3034
}

0 commit comments

Comments
 (0)