mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Working with settings
This commit is contained in:
parent
7ae8f0bc7c
commit
3533a26746
3 changed files with 5 additions and 13 deletions
|
|
@ -6680,10 +6680,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Enable lock screen media widget" : {
|
|
||||||
"comment" : "A toggle that enables or disables the lock screen media widget.",
|
|
||||||
"isCommentAutoGenerated" : true
|
|
||||||
},
|
|
||||||
"Enable music live activity" : {
|
"Enable music live activity" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"ar" : {
|
||||||
|
|
@ -15199,7 +15195,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Shows a lock icon in the Dynamic Island when the screen is locked. The lock screen music panel can be toggled separately in Media settings." : {
|
"Shows a lock icon in the Dynamic Island when the screen is locked. Use the toggles above to control the lock screen media panel and weather capsule." : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"Shows green camera icon and yellow microphone icon when in use. Uses event-driven CoreAudio and CoreMediaIO APIs." : {
|
"Shows green camera icon and yellow microphone icon when in use. Uses event-driven CoreAudio and CoreMediaIO APIs." : {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ struct LockScreenWeatherWidget: View {
|
||||||
.font(.system(size: 24, weight: .semibold, design: .rounded))
|
.font(.system(size: 24, weight: .semibold, design: .rounded))
|
||||||
.kerning(-0.4)
|
.kerning(-0.4)
|
||||||
}
|
}
|
||||||
.foregroundStyle(.white)
|
.foregroundStyle(Color.white.opacity(0.65))
|
||||||
.padding(.horizontal, 10)
|
.padding(.horizontal, 10)
|
||||||
.padding(.vertical, 6)
|
.padding(.vertical, 6)
|
||||||
.background(Color.clear)
|
.background(Color.clear)
|
||||||
|
|
|
||||||
|
|
@ -322,6 +322,8 @@ struct GeneralSettings: View {
|
||||||
Defaults.Toggle("Show media app icon", key: .lockScreenShowAppIcon)
|
Defaults.Toggle("Show media app icon", key: .lockScreenShowAppIcon)
|
||||||
Defaults.Toggle("Show panel border", key: .lockScreenPanelShowsBorder)
|
Defaults.Toggle("Show panel border", key: .lockScreenPanelShowsBorder)
|
||||||
Defaults.Toggle("Enable blur", key: .lockScreenPanelUsesBlur)
|
Defaults.Toggle("Enable blur", key: .lockScreenPanelUsesBlur)
|
||||||
|
Defaults.Toggle("Show lock screen media panel", key: .enableLockScreenMediaWidget)
|
||||||
|
Defaults.Toggle("Show lock screen weather", key: .enableLockScreenWeatherWidget)
|
||||||
|
|
||||||
Button("Copy Latest Crash Report") {
|
Button("Copy Latest Crash Report") {
|
||||||
copyLatestCrashReport()
|
copyLatestCrashReport()
|
||||||
|
|
@ -329,7 +331,7 @@ struct GeneralSettings: View {
|
||||||
} header: {
|
} header: {
|
||||||
Text("Lock Screen")
|
Text("Lock Screen")
|
||||||
} footer: {
|
} footer: {
|
||||||
Text("Shows a lock icon in the Dynamic Island when the screen is locked. The lock screen music panel can be toggled separately in Media settings.")
|
Text("Shows a lock icon in the Dynamic Island when the screen is locked. Use the toggles above to control the lock screen media panel and weather capsule.")
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
|
@ -782,12 +784,6 @@ struct Media: View {
|
||||||
customBadge(text: "Beta")
|
customBadge(text: "Beta")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Enable/disable the lock screen media widget
|
|
||||||
Defaults.Toggle(key: .enableLockScreenMediaWidget) {
|
|
||||||
HStack {
|
|
||||||
Text("Enable lock screen media widget")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} header: {
|
} header: {
|
||||||
Text("Media controls")
|
Text("Media controls")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue