Commit 4baffa1ea35d

Vincent Demeester <vincent@sbr.pm>
2026-02-11 16:26:30
fix(org-todos): improved TODO keyword colors for light theme readability
Changed color scheme for better contrast on both light and dark themes. Added bold styling and switched to theme colors with better visibility.
1 parent 64c17d1
Changed files (1)
dots
pi
agent
extensions
org-todos
dots/pi/agent/extensions/org-todos/index.ts
@@ -271,12 +271,13 @@ export default function (pi: ExtensionAPI) {
       let text = message.content;
       
       // Apply colors to TODO state keywords
-      text = text.replace(/\[TODO\]/g, theme.fg("warning", "[TODO]"));       // Yellow - needs action
-      text = text.replace(/\[NEXT\]/g, theme.fg("accent", "[NEXT]"));        // Cyan - queued next
-      text = text.replace(/\[STRT\]/g, theme.fg("toolTitle", "[STRT]"));     // Bright - in progress
-      text = text.replace(/\[WAIT\]/g, theme.fg("muted", "[WAIT]"));         // Muted - waiting
-      text = text.replace(/\[DONE\]/g, theme.fg("success", "[DONE]"));       // Green - completed
-      text = text.replace(/\[CANX\]/g, theme.fg("error", "[CANX]"));         // Red - cancelled
+      // Using bold and colors that work on both light and dark themes
+      text = text.replace(/\[TODO\]/g, theme.bold(theme.fg("mdHeading", "[TODO]")));     // Orange/amber bold - needs action
+      text = text.replace(/\[NEXT\]/g, theme.bold(theme.fg("accent", "[NEXT]")));        // Accent bold - queued next
+      text = text.replace(/\[STRT\]/g, theme.bold(theme.fg("mdLink", "[STRT]")));        // Link color bold - in progress
+      text = text.replace(/\[WAIT\]/g, theme.bold(theme.fg("muted", "[WAIT]")));         // Muted bold - waiting
+      text = text.replace(/\[DONE\]/g, theme.bold(theme.fg("success", "[DONE]")));       // Green bold - completed
+      text = text.replace(/\[CANX\]/g, theme.bold(theme.fg("error", "[CANX]")));         // Red bold - cancelled
       
       return new Text(text, 0, 0);
     });