Add ALPHA tag for native macOS Timer

This commit is contained in:
Hariharan Mudaliar 2025-12-10 15:38:44 +05:30
commit 14070cd1e9
No known key found for this signature in database
GPG key ID: D04F1C2B9194DDFC
2 changed files with 22 additions and 1 deletions

View file

@ -12794,6 +12794,10 @@
} }
} }
}, },
"Mirror macOS Clock timers" : {
"comment" : "A toggle that enables or disables the app's ability to mirror macOS Clock timers.",
"isCommentAutoGenerated" : true
},
"Mirror shape" : { "Mirror shape" : {
"localizations" : { "localizations" : {
"ar" : { "ar" : {

View file

@ -3325,6 +3325,18 @@ func customBadge(text: String) -> some View {
.clipShape(.capsule) .clipShape(.capsule)
} }
func alphaBadge() -> some View {
Text("ALPHA")
.font(.system(size: 10, weight: .bold))
.foregroundStyle(Color.white)
.padding(.horizontal, 6)
.padding(.vertical, 2)
.background(
Capsule()
.fill(Color.orange.opacity(0.9))
)
}
func warningBadge(_ text: String, _ description: String) -> some View { func warningBadge(_ text: String, _ description: String) -> some View {
Section { Section {
HStack(spacing: 12) { HStack(spacing: 12) {
@ -3389,7 +3401,12 @@ struct TimerSettings: View {
if enableTimerFeature { if enableTimerFeature {
Toggle("Enable timer live activity", isOn: $coordinator.timerLiveActivityEnabled) Toggle("Enable timer live activity", isOn: $coordinator.timerLiveActivityEnabled)
.animation(.easeInOut, value: coordinator.timerLiveActivityEnabled) .animation(.easeInOut, value: coordinator.timerLiveActivityEnabled)
Defaults.Toggle("Mirror macOS Clock timers", key: .mirrorSystemTimer) Defaults.Toggle(key: .mirrorSystemTimer) {
HStack(spacing: 8) {
Text("Mirror macOS Clock timers")
alphaBadge()
}
}
.help("Shows the system Clock timer in the notch when available. Requires Accessibility permission to read the status item.") .help("Shows the system Clock timer in the notch when available. Requires Accessibility permission to read the status item.")
.settingsHighlight(id: highlightID("Mirror macOS Clock timers")) .settingsHighlight(id: highlightID("Mirror macOS Clock timers"))