From 0c5932e0cfbe5ddb29d10d5ac6499c7c4535541e Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 10 Sep 2022 19:29:37 +0200 Subject: [PATCH] fix, color selector problem when using dark themes --- src/u_inspectors.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/u_inspectors.pas b/src/u_inspectors.pas index 5966db09..debad5f6 100644 --- a/src/u_inspectors.pas +++ b/src/u_inspectors.pas @@ -122,7 +122,7 @@ begin // set things up and do the work noFill := CurValue = 'clNone'; if noFill then - Brush.Color := clWindow + Brush.Color := clBackground else Brush.Color := StringToColorDef(CurValue,clNone); Pen.Color := ColorToBorderColor(ColorToRGB(Brush.Color)); @@ -167,7 +167,7 @@ begin ACanvas.Font.Color := clHighlightText; end else begin - ACanvas.Brush.Color := clwhite{clWindow}; + ACanvas.Brush.Color := clWindow; ACanvas.Font.Color := clWindowText; end; ACanvas.FillRect(rc);