( kind: SplitLineCell["kind"], theme: AppTheme, selected: boolean, )
| 58 | |
| 59 | /** Pick the right split-view rail color from the new-side cell state. */ |
| 60 | export 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. */ |
| 70 | export function splitCellPalette( |
no test coverage detected