feat: make shortcuts section collapsible and collapsed by default
This commit is contained in:
parent
ba0ab32e3e
commit
c8448ced5e
@ -4,7 +4,7 @@ import UniformTypeIdentifiers
|
|||||||
struct EnhancementSettingsView: View {
|
struct EnhancementSettingsView: View {
|
||||||
@EnvironmentObject private var enhancementService: AIEnhancementService
|
@EnvironmentObject private var enhancementService: AIEnhancementService
|
||||||
@State private var isEditingPrompt = false
|
@State private var isEditingPrompt = false
|
||||||
@State private var isSettingsExpanded = true
|
@State private var isShortcutsExpanded = false
|
||||||
@State private var selectedPromptForEdit: CustomPrompt?
|
@State private var selectedPromptForEdit: CustomPrompt?
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
@ -76,9 +76,15 @@ struct EnhancementSettingsView: View {
|
|||||||
}
|
}
|
||||||
.opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8)
|
.opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8)
|
||||||
|
|
||||||
Section("Shortcuts") {
|
Section {
|
||||||
EnhancementShortcutsView()
|
DisclosureGroup(isExpanded: $isShortcutsExpanded) {
|
||||||
.padding(.vertical, 8)
|
EnhancementShortcutsView()
|
||||||
|
.padding(.vertical, 8)
|
||||||
|
} label: {
|
||||||
|
Text("Shortcuts")
|
||||||
|
.font(.headline)
|
||||||
|
.foregroundColor(.primary)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8)
|
.opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user