From 011907d93441a1b1a360fa69b2190d137d5693ac Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 28 Aug 2023 10:15:29 +0200 Subject: [PATCH] fix, diff viewer, unmodified text not visible with dark themes --- CHANGELOG.md | 5 +++-- src/u_diff.pas | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bfad110..f29c2375 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -# v3.9.26-alpha +# v3.9.26-devel ## Bugx fixed -- fixed windows release (#116). ldc2 >= 1.31.0 is a minimal requirement now. +- Fixed windows release (#116). ldc2 >= 1.31.0 is a minimal requirement now. +- The context lines of the diff viewer were not legible whith dark themes. # v3.9.25 diff --git a/src/u_diff.pas b/src/u_diff.pas index e14ccc90..db2655e2 100644 --- a/src/u_diff.pas +++ b/src/u_diff.pas @@ -41,7 +41,10 @@ begin editor.Gutter.LineNumberPart.Visible:=false; if ed.isAssigned then + begin editor.Font.Assign(ed.Font); + editor.Color := ed.Color; + end; p := TProcess.Create(self); try