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

Function dimRailColor

src/ui/diff/rowStyle.ts:30–32  ·  view source on GitHub ↗
(color: string, theme: AppTheme)

Source from the content-addressed store, hash-verified

28
29/** Dim a rail color for inactive hunks by blending toward the panel background. */
30export function dimRailColor(color: string, theme: AppTheme) {
31 return blendHex(color, theme.panel, INACTIVE_RAIL_BLEND);
32}
33
34/** Pick the stack-view rail color for one rendered row. */
35export function stackRailColor(kind: StackLineCell["kind"], theme: AppTheme, selected: boolean) {

Callers 4

renderHeaderRowFunction · 0.90
stackRailColorFunction · 0.85
splitLeftRailColorFunction · 0.85
splitRightRailColorFunction · 0.85

Calls 1

blendHexFunction · 0.90

Tested by

no test coverage detected