diff options
author | Neil <nyamatongwe@gmail.com> | 2024-03-14 10:23:18 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-03-14 10:23:18 +1100 |
commit | 7b318c5156ae8b4c9a014717416ceaab7cf2aade (patch) | |
tree | d3b9921857bdece9304da784c1ea3cd17a918a46 /src/Editor.cxx | |
parent | afd1e8e565a5d80b622b283a217681981f066495 (diff) | |
download | scintilla-mirror-7b318c5156ae8b4c9a014717416ceaab7cf2aade.tar.gz |
Add ColourRGBA::Grey constructing method to simplify use of grey-scale colours.
Use symbolic constants for colour components, fixing 'magic number' warnings.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 57535ede9..12076e003 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7631,7 +7631,8 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) { case Message::SetCaretLineVisible: if (wParam) { if (!vs.elementColours.count(Element::CaretLineBack)) { - vs.elementColours[Element::CaretLineBack] = ColourRGBA(0xFF, 0xFF, 0); + // Yellow default + vs.elementColours[Element::CaretLineBack] = ColourRGBA(maximumByte, maximumByte, 0); InvalidateStyleRedraw(); } } else { |