fix #60, Completion menu background and font color should follow UI theme

This commit is contained in:
Basile Burg 2016-06-17 19:31:28 +02:00
parent a80ea80db1
commit b64d891023
2 changed files with 3 additions and 1 deletions

View File

@ -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('{');

View File

@ -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;