Merge pull request #127 from Hecklezz/improvement/highlighted_text_font_color

Set the font color of search highlighted text
master
Beq Janus 2025-05-23 10:33:50 +01:00 committed by GitHub
commit 7b2816a495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -1530,7 +1530,19 @@ void LLTextBase::draw()
bg_rect.intersectWith( text_rect );
gl_rect_2d( text_rect, bg_color, true );
// <FS> Additionally set the font color of highlighted text instead of using LabelTextColor
const LLColor4& font_color = ll::ui::SearchableControl::getHighlightFontColor();
setColor(font_color);
// </FS>
}
// <FS> Set the font color back to LabelTextColor if not highlighted
else
{
const LLColor4& font_color = LLUIColorTable::instance().getColor("LabelTextColor");
setColor(font_color);
}
// </FS>
bool should_clip = mClip || mScroller != NULL;
// <FS:Zi> Fix text bleeding at top edge of scrolling text editors

View File

@ -1902,7 +1902,7 @@
label_height="0"
layout="topleft"
left="350"
top_pad="5"
top_pad="9"
name="area_search_beacon_color"
tool_tip="Choose area search beacon color"
width="44">