diff --git a/supacode/Features/Settings/Models/CanvasDefaultLayout.swift b/supacode/Features/Settings/Models/CanvasDefaultLayout.swift index 4637890b..402a2cbd 100644 --- a/supacode/Features/Settings/Models/CanvasDefaultLayout.swift +++ b/supacode/Features/Settings/Models/CanvasDefaultLayout.swift @@ -18,4 +18,15 @@ enum CanvasDefaultLayout: String, CaseIterable, Identifiable, Codable, Sendable return "Tile" } } + + /// One-line description shown under the Settings picker, following the + /// current selection. + var settingsDescription: String { + switch self { + case .uniform: + return "Cards open at the same size." + case .tile: + return "Cards resize to fill the screen, smaller as you add more." + } + } } diff --git a/supacode/Features/Settings/Views/AppearanceSettingsView.swift b/supacode/Features/Settings/Views/AppearanceSettingsView.swift index ee557a3a..ceee012a 100644 --- a/supacode/Features/Settings/Views/AppearanceSettingsView.swift +++ b/supacode/Features/Settings/Views/AppearanceSettingsView.swift @@ -109,15 +109,12 @@ struct AppearanceSettingsView: View { .help("Overlay detected agent status on the owning tab icon in Shelf View.") } Section("Default Views") { - Picker("Launch in", selection: $store.defaultViewMode) { + Picker("Open when launching Prowl", selection: $store.defaultViewMode) { ForEach(DefaultViewMode.allCases) { mode in Text(mode.title).tag(mode) } } .help("View Prowl starts in on launch. Shelf and Canvas require at least one worktree or folder.") - Text("The view Prowl opens in when you launch the app.") - .foregroundStyle(.secondary) - .font(.callout) Picker("Canvas layout", selection: $store.canvasDefaultLayout) { ForEach(CanvasDefaultLayout.allCases) { layout in @@ -125,12 +122,9 @@ struct AppearanceSettingsView: View { } } .help("How cards are arranged the first time you open Canvas for a set of cards.") - Text( - "How cards are arranged when you open Canvas: Uniform keeps every card the same size; " - + "Tile resizes cards to fill the screen, scaling them down as you add more." - ) - .foregroundStyle(.secondary) - .font(.callout) + Text(store.canvasDefaultLayout.settingsDescription) + .foregroundStyle(.secondary) + .font(.callout) } Section("Default Editor") { Toggle(