aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-10 14:33:37 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-10 14:33:37 +1000
commit50f70a8bb42fc982350731da104b042ae75b1df2 (patch)
treeacf6c9406d410af6a408faec403542da158f51b2 /src/Editor.cxx
parent843ce05440fcd4ba7d19f8b612ab526c88296ad0 (diff)
downloadscintilla-mirror-50f70a8bb42fc982350731da104b042ae75b1df2.tar.gz
Add elementBaseColours to hold default or system derived colours.
Editor::UpdateBaseElements can be overridden by platform layers to set base colours although they should also do this when they detect changes in system settings.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f843a08d2..477173c6b 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5089,6 +5089,10 @@ void Editor::SetFocusState(bool focusState) {
ShowCaretAtCurrentPosition();
}
+void Editor::UpdateBaseElements() {
+ // Overridden by subclasses
+}
+
Sci::Position Editor::PositionAfterArea(PRectangle rcArea) const {
// The start of the document line after the display line after the area
// This often means that the line after a modification is restyled which helps
@@ -7199,7 +7203,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return vs.ElementColour(static_cast<int>(wParam)).value_or(ColourAlpha()).OpaqueRGB();
case SCI_RESETELEMENTCOLOUR:
- vs.elementColours[static_cast<int>(wParam)].reset();
+ vs.ResetElement(static_cast<int>(wParam));
break;
case SCI_GETELEMENTISSET: