krz/orgstar

A native macOS editor for org-mode files. editor org-mode swift

Commit 2fa201330f

2fa201330f61c801f777baa3f2943d49d8758cda

parent: ab6ccec56e

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-09 06:21 UTC

Remove the unused agenda-deadline, -upcoming, -scheduled and -scheduled-past theme keys

Layout: unified · split

Sources/OrgPresentation/ThemeSpec.swift −6
@@ -117,10 +117,6 @@ public struct ThemeSpec: Equatable, Sendable {
117 ("agenda-today", "today's header and the current time"), 117 ("agenda-today", "today's header and the current time"),
118 ("agenda-time", "times and the time grid"), 118 ("agenda-time", "times and the time grid"),
119 ("agenda-category", "categories"), 119 ("agenda-category", "categories"),
120 ("agenda-deadline", "deadlines due"),
121 ("agenda-upcoming", "deadlines coming up"),
122 ("agenda-scheduled", "scheduled items"),
123 ("agenda-scheduled-past", "items scheduled on an earlier day"),
124 ("agenda-overdue", "agenda: the status of entries past their deadline or scheduled date"), 120 ("agenda-overdue", "agenda: the status of entries past their deadline or scheduled date"),
125 ("agenda-due-soon", "agenda: the status of deadlines due today or coming up"), 121 ("agenda-due-soon", "agenda: the status of deadlines due today or coming up"),
126 ("agenda-event", "agenda: calendar events whose calendar has no color"), 122 ("agenda-event", "agenda: calendar events whose calendar has no color"),
@@ -160,7 +156,6 @@ public struct ThemeSpec: Equatable, Sendable {
160 "syntax-type": "#953800", "syntax-number": "#1b7c83", "syntax-property": "#0550ae", "syntax-label": "#8250df", 156 "syntax-type": "#953800", "syntax-number": "#1b7c83", "syntax-property": "#0550ae", "syntax-label": "#8250df",
161 "modeline-highlight": "#1f2328", "state-normal": "#0969da", "state-insert": "#1a7f37", "state-visual": "#bc4c00", 157 "modeline-highlight": "#1f2328", "state-normal": "#0969da", "state-insert": "#1a7f37", "state-visual": "#bc4c00",
162 "agenda-date": "#1f2328", "agenda-today": "#007aff", "agenda-time": "#6c6c70", "agenda-category": "#6c6c70", 158 "agenda-date": "#1f2328", "agenda-today": "#007aff", "agenda-time": "#6c6c70", "agenda-category": "#6c6c70",
163 "agenda-deadline": "#d70015", "agenda-upcoming": "#c93400", "agenda-scheduled": "#6c6c70", "agenda-scheduled-past": "#c93400",
164 "agenda-overdue": "#d70015", "agenda-due-soon": "#c93400", "agenda-event": "#8944ab", 159 "agenda-overdue": "#d70015", "agenda-due-soon": "#c93400", "agenda-event": "#8944ab",
165 "habit-clear": "#54aeff", "habit-ready": "#4ac26b", "habit-alert": "#d4a72c", "habit-overdue": "#ff8182", 160 "habit-clear": "#54aeff", "habit-ready": "#4ac26b", "habit-alert": "#d4a72c", "habit-overdue": "#ff8182",
166 ]), 161 ]),
@@ -179,7 +174,6 @@ public struct ThemeSpec: Equatable, Sendable {
179 "syntax-type": "#ffa657", "syntax-number": "#56d4dd", "syntax-property": "#79c0ff", "syntax-label": "#d2a8ff", 174 "syntax-type": "#ffa657", "syntax-number": "#56d4dd", "syntax-property": "#79c0ff", "syntax-label": "#d2a8ff",
180 "modeline-highlight": "#e6edf3", "state-normal": "#1f6feb", "state-insert": "#238636", "state-visual": "#9e6a03", 175 "modeline-highlight": "#e6edf3", "state-normal": "#1f6feb", "state-insert": "#238636", "state-visual": "#9e6a03",
181 "agenda-date": "#e6edf3", "agenda-today": "#0a84ff", "agenda-time": "#98989d", "agenda-category": "#98989d", 176 "agenda-date": "#e6edf3", "agenda-today": "#0a84ff", "agenda-time": "#98989d", "agenda-category": "#98989d",
182 "agenda-deadline": "#ff6961", "agenda-upcoming": "#ff9f0a", "agenda-scheduled": "#98989d", "agenda-scheduled-past": "#ff9f0a",
183 "agenda-overdue": "#ff6961", "agenda-due-soon": "#ff9f0a", "agenda-event": "#da8fff", 177 "agenda-overdue": "#ff6961", "agenda-due-soon": "#ff9f0a", "agenda-event": "#da8fff",
184 "habit-clear": "#1f6feb", "habit-ready": "#238636", "habit-alert": "#9e6a03", "habit-overdue": "#da3633", 178 "habit-clear": "#1f6feb", "habit-ready": "#238636", "habit-alert": "#9e6a03", "habit-overdue": "#da3633",
185 ]) 179 ])
Sources/Orgstar/ThemeColors.swift +1 −1
@@ -36,7 +36,7 @@ extension ThemeSpec {
36 switch key { 36 switch key {
37 case "sidebar-background", "modeline-background": .windowBackgroundColor 37 case "sidebar-background", "modeline-background": .windowBackgroundColor
38 case "agenda-background", "background": .textBackgroundColor 38 case "agenda-background", "background": .textBackgroundColor
39 case "sidebar-header", "modeline-foreground", "agenda-time", "agenda-category", "agenda-scheduled", "tags": .secondaryLabelColor 39 case "sidebar-header", "modeline-foreground", "agenda-time", "agenda-category", "tags": .secondaryLabelColor
40 default: .labelColor 40 default: .labelColor
41 } 41 }
42 } 42 }
docs/manual/guide/07-agenda.org +1 −1
@@ -437,7 +437,7 @@ The agenda's colors come from these theme keys (see [[file:13-configuration.org]
437| =priority-a=, =priority-b=, =priority-c=, =priority= | priority letters | 437| =priority-a=, =priority-b=, =priority-c=, =priority= | priority letters |
438| =tags= | tag capsules (Mac) | 438| =tags= | tag capsules (Mac) |
439 439
440=[theme.todo]= colors keywords by name and =[theme.category]= colors categories by name. =agenda-deadline=, =agenda-upcoming=, =agenda-scheduled= and =agenda-scheduled-past= are accepted in a theme but not used. 440=[theme.todo]= colors keywords by name and =[theme.category]= colors categories by name.
441 441
442* Acting on entries 442* Acting on entries
443 443
docs/manual/guide/13-configuration.org −4
@@ -570,10 +570,6 @@ The colors stack in this order, each over the one before: the default theme, the
570| =agenda-overdue= | agenda: the status of entries past their deadline or scheduled date, and the Overdue group | 570| =agenda-overdue= | agenda: the status of entries past their deadline or scheduled date, and the Overdue group |
571| =agenda-due-soon= | agenda: the status of deadlines due today or coming up | 571| =agenda-due-soon= | agenda: the status of deadlines due today or coming up |
572| =agenda-event= | agenda: calendar events whose calendar has no color | 572| =agenda-event= | agenda: calendar events whose calendar has no color |
573| =agenda-deadline= | accepted, not used |
574| =agenda-upcoming= | accepted, not used |
575| =agenda-scheduled= | accepted, not used |
576| =agenda-scheduled-past= | accepted, not used |
577| =habit-clear= | habit graph: not due yet | 573| =habit-clear= | habit graph: not due yet |
578| =habit-ready= | habit graph: due | 574| =habit-ready= | habit graph: due |
579| =habit-alert= | habit graph: due today, last chance | 575| =habit-alert= | habit graph: due today, last chance |