surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
| Mmods/diff/hooks/views/detail/backgrounds/backgrounds.ts |
| Mmods/diff/hooks/views/detail/word-backgrounds/word-backgrounds.ts |
| @@ -2,10 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * The theme key behind a run of each kind: the diff's added and removed |
| 5 | - * bands, the plain background behind context. | |
| 5 | + * bands. A context run has none and draws on the terminal's own background | |
| 6 | + * (the theme's `background` key is the background-task accent, a cyan). | |
| 6 | 7 | */ |
| 7 | -export const BACKGROUNDS: Readonly<Record<Types.LineKind, string>> = { | |
| 8 | - added: 'diffAdded', | |
| 9 | - removed: 'diffRemoved', | |
| 10 | - context: 'background', | |
| 11 | -} | |
| 8 | +export const BACKGROUNDS: Readonly<Record<Types.LineKind, string | undefined>> = | |
| 9 | + { | |
| 10 | + added: 'diffAdded', | |
| 11 | + removed: 'diffRemoved', | |
| 12 | + context: undefined, | |
| 13 | + } |
| @@ -1,11 +1,13 @@ | ||
| 1 | 1 | import type Types from '../types' |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * The theme key behind a changed word of each kind (a context line never | |
| 5 | - * carries one). | |
| 4 | + * The theme key behind a changed word of each kind; a context line never | |
| 5 | + * carries one, so it has none. | |
| 6 | 6 | */ |
| 7 | -export const WORD_BACKGROUNDS: Readonly<Record<Types.LineKind, string>> = { | |
| 7 | +export const WORD_BACKGROUNDS: Readonly< | |
| 8 | + Record<Types.LineKind, string | undefined> | |
| 9 | +> = { | |
| 8 | 10 | added: 'diffAddedWord', |
| 9 | 11 | removed: 'diffRemovedWord', |
| 10 | - context: 'background', | |
| 12 | + context: undefined, | |
| 11 | 13 | } |