From b64d8910235683f400cc4cdfff9d1ac81f194ee6 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 17 Jun 2016 19:31:28 +0200 Subject: [PATCH] fix #60, Completion menu background and font color should follow UI theme --- src/ce_d2synpresets.pas | 2 +- src/ce_synmemo.pas | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ce_d2synpresets.pas b/src/ce_d2synpresets.pas index 184ecd84..1f4a5cdf 100644 --- a/src/ce_d2synpresets.pas +++ b/src/ce_d2synpresets.pas @@ -391,7 +391,7 @@ begin fEditor.Options:= fEditor.Options - [eoScrollPastEof, eoScrollPastEol]; fEditor.SetHighlightSearch('writeln',[]); fEditor.lines.Add('module preview;'); - fEditor.lines.Add('import std.stdio'); + fEditor.lines.Add('import std.stdio;'); fEditor.lines.Add('/// ddoc comment'); fEditor.lines.Add('@safe void main(string[] args)'); fEditor.lines.Add('{'); diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index ea3404c6..f838e846 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -1374,6 +1374,8 @@ begin if not fIsDSource and not alwaysAdvancedFeatures then exit; fCompletion.TheForm.Font.Size := Font.Size; + fCompletion.TheForm.BackgroundColor:= self.Color; + fCompletion.TheForm.TextColor:= fD2Highlighter.identifiers.Foreground; getCompletionList; end;