diff options
| author | Neil <nyamatongwe@gmail.com> | 2023-10-10 10:09:27 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2023-10-10 10:09:27 +1100 | 
| commit | 3cfe8e087cea56ab445a3bf1da3762e5c224c374 (patch) | |
| tree | e6391ef56e2355f9e524ff79fa96f7039f821b03 /src/EditView.cxx | |
| parent | b20c3b551a4a87888cf00e5f7da22d836015a073 (diff) | |
| download | scintilla-mirror-3cfe8e087cea56ab445a3bf1da3762e5c224c374.tar.gz | |
Rename bugColour to colourBug to follow convention.
Diffstat (limited to 'src/EditView.cxx')
| -rw-r--r-- | src/EditView.cxx | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/EditView.cxx b/src/EditView.cxx index 8f413e963..0e136a8bf 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -831,13 +831,13 @@ Sci::Position EditView::StartEndDisplayLine(Surface *surface, const EditModel &m  namespace { -constexpr ColourRGBA bugColour = ColourRGBA(0xff, 0, 0xfe, 0xf0); +constexpr ColourRGBA colourBug(0xff, 0, 0xfe, 0xf0);  // Selection background colours are always defined, the value_or is to show if bug  ColourRGBA SelectionBackground(const EditModel &model, const ViewStyle &vsDraw, InSelection inSelection) {  	if (inSelection == InSelection::inNone) -		return bugColour;	// Not selected is a bug +		return colourBug;	// Not selected is a bug  	Element element = Element::SelectionBack;  	if (inSelection == InSelection::inAdditional) @@ -846,7 +846,7 @@ ColourRGBA SelectionBackground(const EditModel &model, const ViewStyle &vsDraw,  		element = Element::SelectionSecondaryBack;  	if (!model.hasFocus && vsDraw.ElementColour(Element::SelectionInactiveBack))  		element = Element::SelectionInactiveBack; -	return vsDraw.ElementColour(element).value_or(bugColour); +	return vsDraw.ElementColour(element).value_or(colourBug);  }  ColourOptional SelectionForeground(const EditModel &model, const ViewStyle &vsDraw, InSelection inSelection) { @@ -1411,9 +1411,9 @@ void EditView::DrawAnnotation(Surface *surface, const EditModel &model, const Vi  			}  		}  	} else { -		// No annotation to draw so show bug with bugColour +		// No annotation to draw so show bug with colourBug  		if (FlagSet(phase, DrawPhase::back)) { -			surface->FillRectangle(rcSegment, bugColour.Opaque()); +			surface->FillRectangle(rcSegment, colourBug.Opaque());  		}  	}  } | 
