mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Add ALPHA tag for native macOS Timer
This commit is contained in:
parent
57fc9b9bf9
commit
14070cd1e9
2 changed files with 22 additions and 1 deletions
|
|
@ -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" : {
|
||||||
|
|
|
||||||
|
|
@ -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"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue