( kind: SplitLineCell["kind"], theme: AppTheme, selected: boolean, )
| 48 | |
| 49 | /** Pick the left split-view rail color from the old-side cell state. */ |
| 50 | export 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. */ |
| 60 | export function splitRightRailColor( |
no test coverage detected