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

Function splitRightRailColor

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

Source from the content-addressed store, hash-verified

58
59/** Pick the right split-view rail color from the new-side cell state. */
60export function splitRightRailColor(
61 kind: SplitLineCell["kind"],
62 theme: AppTheme,
63 selected: boolean,
64) {
65 const color = kind === "addition" ? theme.addedSignColor : neutralRailColor(theme);
66 return selected ? color : dimRailColor(color, theme);
67}
68
69/** Pick split-view colors from the semantic diff cell kind. */
70export function splitCellPalette(

Callers 2

renderStaticSplitCellFunction · 0.90
renderRowFunction · 0.90

Calls 2

neutralRailColorFunction · 0.85
dimRailColorFunction · 0.85

Tested by

no test coverage detected