pi-compact-tools 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -155,7 +155,7 @@ export function withContrast(theme: Theme, rgb: Rgb, minimum: number, maximum: n
|
|
|
155
155
|
* Diff rows need a tint that reads on the terminal background without hijacking `toolSuccessBg`
|
|
156
156
|
* and `toolErrorBg`, which Pi paints across the whole tool row.
|
|
157
157
|
*/
|
|
158
|
-
export function diffTintRgb(theme: Theme, color: ThemeForeground, amount = 0.
|
|
158
|
+
export function diffTintRgb(theme: Theme, color: ThemeForeground, amount = 0.17): Rgb | undefined {
|
|
159
159
|
const rgb = themeColorRgb(theme, color);
|
|
160
160
|
if (!rgb) return undefined;
|
|
161
161
|
const base = isDarkTheme(theme) ? BLACK : WHITE;
|