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

Function renderHeaderLikeRow

src/ui/staticDiffPager.ts:104–106  ·  view source on GitHub ↗
(text: string, fg: string, bg: string, theme: AppTheme)

Source from the content-addressed store, hash-verified

102const marker = diffRailMarker;
103
104function renderHeaderLikeRow(text: string, fg: string, bg: string, theme: AppTheme) {
105 return `${colorText(marker(), neutralRailColor(theme), bg)}${colorText(text.trimEnd(), fg, bg)}`;
106}
107
108function fixedWidthText(text: string, width: number) {
109 const visible = sliceTextByWidth(text, 0, width);

Callers 2

renderStaticStackRowFunction · 0.85
renderStaticSplitRowFunction · 0.85

Calls 2

neutralRailColorFunction · 0.90
colorTextFunction · 0.85

Tested by

no test coverage detected