mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Removed BoringWorkerNotifier Dependency
This commit is contained in:
parent
ef18157857
commit
89538faffa
9 changed files with 35 additions and 123 deletions
|
|
@ -72,35 +72,27 @@ func logout() {
|
|||
}
|
||||
|
||||
struct DynamicIslandSystemTiles: View {
|
||||
@EnvironmentObject var vm: DynamicIslandViewModel
|
||||
@ObservedObject var coordinator = DynamicIslandViewCoordinator.shared
|
||||
|
||||
struct ItemButton {
|
||||
var icon: String
|
||||
var onTap: () -> Void
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
Grid {
|
||||
GridRow {
|
||||
// SystemItemButton(icon: "clipboard", onTap: {
|
||||
// vm.openClipboard()
|
||||
// }, label: "Clipboard History", showEmojis: Defaults[.showEmojis], emoji: "✨")
|
||||
// SystemItemButton(icon: "keyboard", onTap: {
|
||||
// vm?.close()
|
||||
// vm?.togglesneakPeek(status: true, type: .backlight, value: 1)
|
||||
// }, label: "💡 Keyboard Backlight")
|
||||
}
|
||||
GridRow {
|
||||
SystemItemButton(icon: coordinator.currentMicStatus ? "mic" : "mic.slash", onTap: {
|
||||
coordinator.toggleMic()
|
||||
vm.close()
|
||||
}, label: "Toggle Microphone", showEmojis: Defaults[.showEmojis], emoji: coordinator.currentMicStatus ? "😀" : "🤫")
|
||||
// SystemItemButton(icon: "lock", onTap: {
|
||||
// logout()
|
||||
// }, label: "🔒 Lock My Device")
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Label {
|
||||
Text("Microphone privacy indicator runs automatically whenever apps access audio.")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.gray)
|
||||
.lineLimit(3)
|
||||
.multilineTextAlignment(.leading)
|
||||
} icon: {
|
||||
Image(systemName: "shield.lefthalf.filled")
|
||||
.foregroundStyle(.gray)
|
||||
}
|
||||
|
||||
Text("Manage indicator preferences from Settings → Privacy. No manual microphone toggle is required.")
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(3)
|
||||
.multilineTextAlignment(.leading)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.vertical, 4)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue