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 {
117117 ("agenda-today", "today's header and the current time"),
118118 ("agenda-time", "times and the time grid"),
119119 ("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"),
124120 ("agenda-overdue", "agenda: the status of entries past their deadline or scheduled date"),
125121 ("agenda-due-soon", "agenda: the status of deadlines due today or coming up"),
126122 ("agenda-event", "agenda: calendar events whose calendar has no color"),
@@ -160,7 +156,6 @@ public struct ThemeSpec: Equatable, Sendable {
160156 "syntax-type": "#953800", "syntax-number": "#1b7c83", "syntax-property": "#0550ae", "syntax-label": "#8250df",
161157 "modeline-highlight": "#1f2328", "state-normal": "#0969da", "state-insert": "#1a7f37", "state-visual": "#bc4c00",
162158 "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",
164159 "agenda-overdue": "#d70015", "agenda-due-soon": "#c93400", "agenda-event": "#8944ab",
165160 "habit-clear": "#54aeff", "habit-ready": "#4ac26b", "habit-alert": "#d4a72c", "habit-overdue": "#ff8182",
166161 ]),
@@ -179,7 +174,6 @@ public struct ThemeSpec: Equatable, Sendable {
179174 "syntax-type": "#ffa657", "syntax-number": "#56d4dd", "syntax-property": "#79c0ff", "syntax-label": "#d2a8ff",
180175 "modeline-highlight": "#e6edf3", "state-normal": "#1f6feb", "state-insert": "#238636", "state-visual": "#9e6a03",
181176 "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",
183177 "agenda-overdue": "#ff6961", "agenda-due-soon": "#ff9f0a", "agenda-event": "#da8fff",
184178 "habit-clear": "#1f6feb", "habit-ready": "#238636", "habit-alert": "#9e6a03", "habit-overdue": "#da3633",
185179 ])
Sources/Orgstar/ThemeColors.swift +1 −1
@@ -36,7 +36,7 @@ extension ThemeSpec {
3636 switch key {
3737 case "sidebar-background", "modeline-background": .windowBackgroundColor
3838 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
4040 default: .labelColor
4141 }
4242 }
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]
437437| =priority-a=, =priority-b=, =priority-c=, =priority= | priority letters |
438438| =tags= | tag capsules (Mac) |
439439
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.
441441
442442* Acting on entries
443443
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
570570| =agenda-overdue= | agenda: the status of entries past their deadline or scheduled date, and the Overdue group |
571571| =agenda-due-soon= | agenda: the status of deadlines due today or coming up |
572572| =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 |
577573| =habit-clear= | habit graph: not due yet |
578574| =habit-ready= | habit graph: due |
579575| =habit-alert= | habit graph: due today, last chance |