Add App Shortcuts and improve IntentsExtension

This commit is contained in:
世界
2025-12-07 11:33:30 +08:00
parent 39338ab133
commit bbf0d4945c
3 changed files with 103 additions and 11 deletions
@@ -15,6 +15,7 @@ struct ServiceToggleControl: ControlWidget {
action: ToggleServiceIntent()
) { isOn in
Label(isOn ? "Running" : "Stopped", systemImage: "shippingbox.fill")
.controlWidgetActionHint(isOn ? "Stop" : "Start")
}
.tint(.init(red: CGFloat(Double(69) / 255), green: CGFloat(Double(90) / 255), blue: CGFloat(Double(100) / 255)))
}