fix(app): keep diff typography and colours native to the host

This commit is contained in:
2026-10-21 18:40:49 +01:00
parent ada25a59e5
commit 32e1cac46f
10 changed files with 63 additions and 210 deletions
@@ -17,7 +17,7 @@ class PatchView extends StatelessWidget {
@override
Widget build(BuildContext context) {
final parsed = file.parsedPatch;
final base = monospaceText(DefaultTextStyle.of(context).style);
final base = nativeDiffText(DefaultTextStyle.of(context).style);
final stat = changeStat(parsed.added, parsed.removed);
return Semantics(
container: true,
@@ -106,7 +106,7 @@ class _HunkView extends StatelessWidget {
@override
Widget build(BuildContext context) {
final base = monospaceText(DefaultTextStyle.of(context).style);
final base = nativeDiffText(DefaultTextStyle.of(context).style);
final width = gutterWidth(hunk);
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,