FIRE-6955: Line numbers in script editor not using correct transparency

Ansariel 2017-11-27 12:56:51 +01:00
parent 31aeaa8249
commit c415ce10e3
1 changed files with 7 additions and 4 deletions

View File

@ -88,12 +88,15 @@ void LLScriptEditor::drawLineNumbers()
if (mShowLineNumbers)
{
S32 left = 0;
//S32 left = 0; // <FS:Ansariel> FIRE-6955: Line numbers not using correct transparency
S32 top = getRect().getHeight();
S32 bottom = 0;
gl_rect_2d(left, top, UI_TEXTEDITOR_LINE_NUMBER_MARGIN, bottom, mReadOnlyBgColor.get() ); // line number area always read-only
gl_rect_2d(UI_TEXTEDITOR_LINE_NUMBER_MARGIN, top, UI_TEXTEDITOR_LINE_NUMBER_MARGIN-1, bottom, LLColor4::grey3); // separator
// <FS:Ansariel> FIRE-6955: Line numbers not using correct transparency
//gl_rect_2d(left, top, UI_TEXTEDITOR_LINE_NUMBER_MARGIN, bottom, mReadOnlyBgColor.get() ); // line number area always read-only
//gl_rect_2d(UI_TEXTEDITOR_LINE_NUMBER_MARGIN, top, UI_TEXTEDITOR_LINE_NUMBER_MARGIN-1, bottom, LLColor4::grey3); // separator
gl_rect_2d(UI_TEXTEDITOR_LINE_NUMBER_MARGIN, top, UI_TEXTEDITOR_LINE_NUMBER_MARGIN-1, bottom, LLColor4::grey3 % getCurrentTransparency()); // separator
// </FS:Ansariel>
S32 last_line_num = -1;