Schalter „Alle Kategorien“: automatischer Wechsel durch alle Effekte

Neues Feld allCategories in /api/state (nach dem Einschalten false),
in der App ein zweiter Schalter unter „Automatisch wechseln“.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mikeandClaude Opus 5.5 committed 2026-11-16 15:28:42 +01:00
1 parent e5e424a7a6
commit f8360c31f6
9 files changed
+39 -10

No files matched your search

+10
View File
@@ -14,6 +14,7 @@ struct ContentView: View {
specials
brightness
autoToggle
allToggle
effectGrid
}
.padding(.horizontal)
@@ -105,6 +106,15 @@ struct ContentView: View {
.disabled(!model.isConnected)
}
/// Beim automatischen Wechsel auch in andere Kategorien springen
private var allToggle: some View {
Toggle("Alle Kategorien", isOn: Binding(
get: { model.state?.allCategories ?? false },
set: { on in Task { await model.setAllCategories(on) } }
))
.disabled(!model.isConnected || model.state?.auto == false)
}
/// Plätze pro Kategorie (2 Spalten × 6 Zeilen)
private static let slots = 12