diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-10 14:33:37 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-10 14:33:37 +1000 |
commit | 50f70a8bb42fc982350731da104b042ae75b1df2 (patch) | |
tree | acf6c9406d410af6a408faec403542da158f51b2 /src/Editor.cxx | |
parent | 843ce05440fcd4ba7d19f8b612ab526c88296ad0 (diff) | |
download | scintilla-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.cxx | 6 |
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: |