aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-11 10:06:28 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-11 10:06:28 +1000
commit002f1a013736a89223dc1ede2724f8492e12ce1f (patch)
tree26232075fd5f586fae60fc75f8f97dd811855115 /src/Editor.cxx
parent59052f9ae48d6e24a270303d9f2af4097ca62086 (diff)
downloadscintilla-mirror-002f1a013736a89223dc1ede2724f8492e12ce1f.tar.gz
Implement SCI_GETELEMENTBASECOLOUR to return the default values for element
colours.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 17749d799..458d34ccf 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7212,6 +7212,9 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_GETELEMENTALLOWSTRANSLUCENT:
return vs.ElementAllowsTranslucent(static_cast<int>(wParam));
+ case SCI_GETELEMENTBASECOLOUR:
+ return vs.elementBaseColours[static_cast<int>(wParam)].value_or(ColourAlpha()).AsInteger();
+
case SCI_SETFONTLOCALE:
if (lParam) {
vs.SetFontLocaleName(CharPtrFromSPtr(lParam));