Commit a171b8898f

a171b8898f22f338ebdd1e333400e09397af8e64

parent: fae1458f0e

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-25 23:49 UTC

iOS Settings: appearance first, options named by what they do

Settings opens on orgstar+, Appearance and the agenda; the configuration
folder comes last. The TODO dependency toggles say what they do, as on the
Mac, with the variable names as help text. The notification lead time in
In use is called Notifications, so Reminders means only the Reminders app.

Ref #222

Layout: unified · split

Changed files (2)
Sources/OrgstarMobile/SettingsScreen.swift +55 −49 · view
@@ -34,32 +34,59 @@ struct SettingsScreen: View {
3434 }
3535 .listRowBackground(ProBanner.rowBackground)
3636 Section {
37 LabeledContent("Folder", value: model.configFolder?.lastPathComponent ?? String(localized: "none.folder", defaultValue: "None", comment: "No configuration folder chosen"))
38 Button(model.configFolder == nil ? "Choose Folder…" : "Choose Another Folder…") { choosing = true }
39 if model.configFolder != nil {
40 NavigationLink("Edit config.toml") { ConfigFileEditor(model: model) }
37 let _ = model.settingsVersion
38 NavigationLink {
39 ThemePickerScreen(model: model, appearance: .light)
40 } label: {
41 LabeledContent("Light Theme", value: ThemePickerScreen.current(.light).displayName)
4142 }
42 NavigationLink("Import from Emacs") { EmacsImportScreen(model: model) }
43 if model.configFolder != nil {
44 Button("Stop Using This Folder", role: .destructive) { model.setConfigFolder(nil) }
43 NavigationLink {
44 ThemePickerScreen(model: model, appearance: .dark)
45 } label: {
46 LabeledContent("Dark Theme", value: ThemePickerScreen.current(.dark).displayName)
47 }
48 NavigationLink {
49 AppIconScreen(current: $appIcon)
50 } label: {
51 LabeledContent("App Icon", value: AppIcons.name(appIcon))
52 }
53 Picker("Body Font", selection: Binding {
54 UserDefaults.standard.string(forKey: "themeBodyFont") ?? ""
55 } set: { model.set("themeBodyFont", to: .string($0)) }) {
56 let body = UserDefaults.standard.string(forKey: "themeBodyFont") ?? ""
57 Text("Same as Font").tag("")
58 Text("System").tag("system")
59 ForEach(Self.proportionalFamilies, id: \.self) { Text($0).tag($0) }
60 if !["", "system"].contains(body), !Self.proportionalFamilies.contains(body) { Text(body).tag(body) }
61 }
62 .pickerStyle(.navigationLink)
63 Picker("Text Width", selection: Binding {
64 UserDefaults.standard.integer(forKey: "themeTextWidth")
65 } set: { model.set("themeTextWidth", to: .integer($0)) }) {
66 let width = UserDefaults.standard.integer(forKey: "themeTextWidth")
67 Text("Whole Screen").tag(0)
68 ForEach([60, 70, 80, 90, 100, 120], id: \.self) { Text("\($0) columns").tag($0) }
69 if ![0, 60, 70, 80, 90, 100, 120].contains(width) { Text("\(width) columns").tag(width) }
4570 }
46 ForEach(model.configProblems, id: \.self) { Text($0).foregroundStyle(.red) }
4771 } header: {
48 Text("Configuration")
72 Text("Appearance")
4973 } footer: {
50 Text("A folder with config.toml and capture.toml, such as a synced copy of ~/.config/orgstar from your Mac. Changes to them apply as they sync.")
74 Text("With a Body Font, prose uses it while tables, code, dates, tags and drawers keep the monospaced font. Text Width keeps lines to that many columns, centred, on a screen wider than that.")
5175 }
5276 Section {
5377 let _ = model.settingsVersion
5478 Toggle("Show days without entries", isOn: Binding {
5579 OrgPreferences.agendaShowAllDates()
5680 } set: { model.set("agendaShowAllDates", to: .bool($0)) })
81 .help(Text(verbatim: "org-agenda-show-all-dates"))
5782 Toggle("Habits only today", isOn: Binding {
5883 OrgPreferences.habitsOnlyForToday()
5984 } set: { model.set("habitsOnlyForToday", to: .bool($0)) })
85 .help(Text(verbatim: "org-habit-show-habits-only-for-today"))
6086 Toggle("Exclude archived tasks", isOn: Binding {
6187 OrgPreferences.agendaExcludeArchives()
6288 } set: { model.set("agendaExcludeArchives", to: .bool($0)) })
89 .help(Text(verbatim: "agenda-exclude-archives"))
6390 Picker("Blocked entries", selection: Binding {
6491 UserDefaults.standard.string(forKey: "agendaDimBlockedTasks") ?? "t"
6592 } set: { model.set("agendaDimBlockedTasks", to: .string($0)) }) {
@@ -67,6 +94,7 @@ struct SettingsScreen: View {
6794 Text("Hidden").tag("invisible")
6895 Text("Shown as usual").tag("nil")
6996 }
97 .help(Text(verbatim: "org-agenda-dim-blocked-tasks"))
7098 } header: {
7199 Text("Agenda")
72100 } footer: {
@@ -74,17 +102,21 @@ struct SettingsScreen: View {
74102 }
75103 Section {
76104 let _ = model.settingsVersion
77 Toggle("Not done before TODO children", isOn: Binding {
105 Toggle("Entries can't be done before their TODO children", isOn: Binding {
78106 UserDefaults.standard.bool(forKey: "enforceTodoDependencies")
79107 } set: { model.set("enforceTodoDependencies", to: .bool($0)) })
80 Toggle("Not done with unchecked boxes", isOn: Binding {
108 .help(Text(verbatim: "org-enforce-todo-dependencies"))
109 Toggle("Entries can't be done with unchecked boxes", isOn: Binding {
81110 UserDefaults.standard.bool(forKey: "enforceTodoCheckboxDependencies")
82111 } set: { model.set("enforceTodoCheckboxDependencies", to: .bool($0)) })
112 .help(Text(verbatim: "org-enforce-todo-checkbox-dependencies"))
83113 } header: {
84114 Text("TODO Dependencies")
85115 } footer: {
86116 Text("org-enforce-todo-dependencies and org-enforce-todo-checkbox-dependencies.")
87117 }
118 calendarSection
119 reminderSection
88120 Section {
89121 if badges == true {
90122 LabeledContent("Overdue Count on Icon", value: "On")
@@ -106,52 +138,26 @@ struct SettingsScreen: View {
106138 if badges == false { Text("Turn on Badges in orgstar's notification settings.") }
107139 }
108140 Section {
109 let _ = model.settingsVersion
110 NavigationLink {
111 ThemePickerScreen(model: model, appearance: .light)
112 } label: {
113 LabeledContent("Light Theme", value: ThemePickerScreen.current(.light).displayName)
114 }
115 NavigationLink {
116 ThemePickerScreen(model: model, appearance: .dark)
117 } label: {
118 LabeledContent("Dark Theme", value: ThemePickerScreen.current(.dark).displayName)
119 }
120 NavigationLink {
121 AppIconScreen(current: $appIcon)
122 } label: {
123 LabeledContent("App Icon", value: AppIcons.name(appIcon))
124 }
125 Picker("Body Font", selection: Binding {
126 UserDefaults.standard.string(forKey: "themeBodyFont") ?? ""
127 } set: { model.set("themeBodyFont", to: .string($0)) }) {
128 let body = UserDefaults.standard.string(forKey: "themeBodyFont") ?? ""
129 Text("Same as Font").tag("")
130 Text("System").tag("system")
131 ForEach(Self.proportionalFamilies, id: \.self) { Text($0).tag($0) }
132 if !["", "system"].contains(body), !Self.proportionalFamilies.contains(body) { Text(body).tag(body) }
141 LabeledContent("Folder", value: model.configFolder?.lastPathComponent ?? String(localized: "none.folder", defaultValue: "None", comment: "No configuration folder chosen"))
142 Button(model.configFolder == nil ? "Choose Folder…" : "Choose Another Folder…") { choosing = true }
143 if model.configFolder != nil {
144 NavigationLink("Edit config.toml") { ConfigFileEditor(model: model) }
133145 }
134 .pickerStyle(.navigationLink)
135 Picker("Text Width", selection: Binding {
136 UserDefaults.standard.integer(forKey: "themeTextWidth")
137 } set: { model.set("themeTextWidth", to: .integer($0)) }) {
138 let width = UserDefaults.standard.integer(forKey: "themeTextWidth")
139 Text("Whole Screen").tag(0)
140 ForEach([60, 70, 80, 90, 100, 120], id: \.self) { Text("\($0) columns").tag($0) }
141 if ![0, 60, 70, 80, 90, 100, 120].contains(width) { Text("\(width) columns").tag(width) }
146 NavigationLink("Import from Emacs") { EmacsImportScreen(model: model) }
147 if model.configFolder != nil {
148 Button("Stop Using This Folder", role: .destructive) { model.setConfigFolder(nil) }
142149 }
150 ForEach(model.configProblems, id: \.self) { Text($0).foregroundStyle(.red) }
143151 } header: {
144 Text("Appearance")
152 Text("Configuration")
145153 } footer: {
146 Text("With a Body Font, prose uses it while tables, code, dates, tags and drawers keep the monospaced font. Text Width keeps lines to that many columns, centred, on a screen wider than that.")
154 Text("A folder with config.toml and capture.toml, such as a synced copy of ~/.config/orgstar from your Mac. Changes to them apply as they sync.")
147155 }
148 calendarSection
149 reminderSection
150156 Section("In use") {
151157 let _ = model.settingsVersion
152158 LabeledContent("TODO keywords", value: todoKeywords)
153159 LabeledContent("Agenda", value: agenda)
154 LabeledContent("Reminders", value: OrgPreferences.reminders() ? "\(OrgPreferences.reminderLead()) min before" : "Off")
160 LabeledContent("Notifications", value: OrgPreferences.reminders() ? "\(OrgPreferences.reminderLead()) min before" : "Off")
155161 LabeledContent("Capture templates", value: CaptureTemplates.load().templates.map(\.key).joined(separator: " "))
156162 LabeledContent("Theme", value: themeInUse)
157163 LabeledContent("Font", value: font)
docs/manual/guide/14-ios.org +3 −3 · view
@@ -385,7 +385,7 @@ See [[file:15-alongside-emacs.org][Working alongside Emacs and other tools]] for
385385
386386The iOS app reads its settings from a configuration folder: a folder holding =config.toml= and =capture.toml=, such as a copy of the Mac's =~/.config/orgstar= synced through iCloud Drive or another app.
387387
3881. Open the Settings tab.
3881. Open the Settings tab. Settings opens on Appearance and the agenda; the Configuration section is near the bottom.
3893892. Tap Choose Folder… and choose the folder. If it has no =config.toml=, orgstar writes one with every setting at its default, each with a comment, as the Mac does.
390390
391391Changes to the files apply as they sync, and again each time you return to the app. Problems in the files show in red under the folder. "No config.toml in /folder/; the defaults apply" means the folder has no =config.toml=, for example because it was removed after you chose the folder.
@@ -410,14 +410,14 @@ The Agenda, TODO Dependencies, Calendar and Reminders sections are the only plac
410410- Habits only today :: turns =org-habit-show-habits-only-for-today= on or off.
411411- Exclude archived tasks :: turns =agenda-exclude-archives= on or off: the agenda leaves out the files your agenda files archive to.
412412- Blocked entries :: Dimmed, Hidden or Shown as usual (=org-agenda-dim-blocked-tasks=).
413- TODO Dependencies :: Not done before TODO children (=org-enforce-todo-dependencies=) and Not done with unchecked boxes (=org-enforce-todo-checkbox-dependencies=).
413- TODO Dependencies :: Entries can't be done before their TODO children (=org-enforce-todo-dependencies=) and Entries can't be done with unchecked boxes (=org-enforce-todo-checkbox-dependencies=).
414414- Show Calendar Events :: turns on =calendar-events=, and asks for access to your calendars. iOS asks for full access, as Calendar has no read-only level; orgstar changes a calendar only when you edit an event or add an entry. While access is missing the section shows Allow Access to Calendars…; if you declined, allow it in the Settings app under Privacy & Security ▸ Calendars.
415415- The calendars :: tap one to show or hide its events (=calendar-event-calendars=). With every calendar checked the setting is empty, so calendars added later show too.
416416- Show Reminders :: turns on =agenda-reminders= and asks for access to your reminders; Allow Access to Reminders… shows while it is missing. Tap a list to show or hide its reminders (=agenda-reminder-lists=).
417417
418418These write =config.toml= in the configuration folder, as the Mac's Settings window does, so the Mac sees the change too. Without a configuration folder they are kept on the device.
419419
420The In use section shows the TODO keywords, the agenda span and start (for example =10 days, starting today=), the reminder lead time, the capture template keys, the light and dark themes, and the theme file's name when there is one, and the font with its size. When =font= names a family that isn't installed on the device, Font shows the system's font with a note, as =System monospaced, 13 pt (JetBrains Mono isn't installed)=.
420The In use section shows the TODO keywords, the agenda span and start (for example =10 days, starting today=), Notifications (how long before a timed entry it notifies you, or Off), the capture template keys, the light and dark themes, and the theme file's name when there is one, and the font with its size. When =font= names a family that isn't installed on the device, Font shows the system's font with a note, as =System monospaced, 13 pt (JetBrains Mono isn't installed)=.
421421
422422About orgstar, at the bottom, shows the version, What's New (the sheet that opens once after an update with what changed) and links to the manual, the release notes, the website, the issue tracker (which needs a gitbay account), support by email at =help@krz.sh= with the version and device filled in, the App Store review page, the source code, the license, third-party notices and the privacy policy.
423423
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form