diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-28 09:55:48 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-28 09:55:48 +1000 |
commit | df4b44f4657ef0b2f98d118352281d3f78b17995 (patch) | |
tree | 2dc5bf9ba963017a8d00b945976457caba13957f /src/EditView.cxx | |
parent | ce72ce1bf80bdb20070821f0758e45dccd541d64 (diff) | |
download | scintilla-mirror-df4b44f4657ef0b2f98d118352281d3f78b17995.tar.gz |
Rename 'NO_FOCUS' to 'INACTIVE' to better match platform terms.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 3ba7b8560..2774d5f2e 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -840,8 +840,8 @@ ColourRGBA SelectionBackground(const EditModel &model, const ViewStyle &vsDraw, element = Element::SelectionAdditionalBack; if (!model.primarySelection) element = Element::SelectionSecondaryBack; - if (!model.hasFocus && vsDraw.ElementColour(Element::SelectionNoFocusBack)) - element = Element::SelectionNoFocusBack; + if (!model.hasFocus && vsDraw.ElementColour(Element::SelectionInactiveBack)) + element = Element::SelectionInactiveBack; return vsDraw.ElementColour(element).value_or(bugColour); } @@ -854,8 +854,8 @@ std::optional<ColourRGBA> SelectionForeground(const EditModel &model, const View if (!model.primarySelection) // Secondary selection element = Element::SelectionSecondaryText; if (!model.hasFocus) { - if (vsDraw.ElementColour(Element::SelectionNoFocusText)) { - element = Element::SelectionNoFocusText; + if (vsDraw.ElementColour(Element::SelectionInactiveText)) { + element = Element::SelectionInactiveText; } else { return {}; } |