diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-29 08:25:51 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-29 08:25:51 +1100 | 
| commit | ab70e1041cb40c9d807a18ca7abb5c000adf2fdf (patch) | |
| tree | 709d60718e9cf33924a625f82ff7999494027f6f /src/ScintillaBase.cxx | |
| parent | 508d037ed3389c5678addebefb62485ebfc10bb7 (diff) | |
| download | scintilla-mirror-ab70e1041cb40c9d807a18ca7abb5c000adf2fdf.tar.gz | |
Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 1e55fcfbf..e2fb58206 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -15,6 +15,7 @@  #include <string_view>  #include <vector>  #include <map> +#include <set>  #include <optional>  #include <algorithm>  #include <memory> @@ -260,6 +261,14 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list  	ac.Start(wMain, idAutoComplete, sel.MainCaret(), PointMainCaret(),  				lenEntered, vs.lineHeight, IsUnicodeMode(), technology); +	ListOptions options{ +		vs.ElementColour(SC_ELEMENT_LIST), +		vs.ElementColour(SC_ELEMENT_LIST_BACK), +		vs.ElementColour(SC_ELEMENT_LIST_SELECTED), +		vs.ElementColour(SC_ELEMENT_LIST_SELECTED_BACK) +	}; +	ac.lb->SetOptions(options); +  	const PRectangle rcClient = GetClientRectangle();  	Point pt = LocationFromPosition(sel.MainCaret() - lenEntered);  	PRectangle rcPopupBounds = wMain.GetMonitorRect(pt); | 
