diff options
| author | Cinder <cinder.roxley@phoenixviewer.com> | 2014-06-24 15:27:08 -0600 | 
|---|---|---|
| committer | Cinder <cinder.roxley@phoenixviewer.com> | 2014-06-24 15:27:08 -0600 | 
| commit | c3573b6d7b53dac583f9fed40a243f7fa98f6c87 (patch) | |
| tree | 53177581f48195051209c196585adea0bdfb556b /indra/newview | |
| parent | 498a0e36e560ca243286c4efeeecc1d11ac82235 (diff) | |
STORM-2035 - Looking for a good selection box contrast
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llscripteditor.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/indra/newview/llscripteditor.cpp b/indra/newview/llscripteditor.cpp index 3bbfbad477..81920562a7 100644 --- a/indra/newview/llscripteditor.cpp +++ b/indra/newview/llscripteditor.cpp @@ -267,13 +267,13 @@ void LLScriptEditor::drawSelectionBackground()  		}  		gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); -		const LLColor4& color = mReadOnly ? mReadOnlyBgColor : mWriteableBgColor; +		const LLColor4& color = mReadOnly ? mReadOnlyFgColor : mFgColor;  		F32 alpha = hasFocus() ? 0.7f : 0.3f;  		alpha *= getDrawContext().mAlpha; -		// We want to invert the background color in script editors -		LLColor4 selection_color(1.f - color.mV[VRED], -								 1.f - color.mV[VGREEN], -								 1.f - color.mV[VBLUE], +		// We want to shift the color to something readable but distinct +		LLColor4 selection_color((1.f + color.mV[VRED]) * 0.5f, +								 (1.f + color.mV[VGREEN]) * 0.5f, +								 (1.f + color.mV[VBLUE]) * 0.5f,  								 alpha);  		for (std::vector<LLRect>::iterator rect_it = selection_rects.begin(); | 
