MCPcopy Create free account
hub / github.com/modem-dev/hunk / splitLeftRailColor

Function splitLeftRailColor

src/ui/diff/rowStyle.ts:50–57  ·  view source on GitHub ↗
(
  kind: SplitLineCell["kind"],
  theme: AppTheme,
  selected: boolean,
)

Source from the content-addressed store, hash-verified

48
49/** Pick the left split-view rail color from the old-side cell state. */
50export function splitLeftRailColor(
51 kind: SplitLineCell["kind"],
52 theme: AppTheme,
53 selected: boolean,
54) {
55 const color = kind === "deletion" ? theme.removedSignColor : neutralRailColor(theme);
56 return selected ? color : dimRailColor(color, theme);
57}
58
59/** Pick the right split-view rail color from the new-side cell state. */
60export function splitRightRailColor(

Callers 2

renderStaticSplitCellFunction · 0.90
renderRowFunction · 0.90

Calls 2

neutralRailColorFunction · 0.85
dimRailColorFunction · 0.85

Tested by

no test coverage detected