Make URI query part color customizable

meow-7.2.2
Ansariel 2015-05-04 10:34:22 +02:00
parent aabeeadf77
commit 6e21b3e96d
4 changed files with 16 additions and 2 deletions

View File

@ -2296,8 +2296,13 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
std::string label = match.getQuery();
if (label.size())
{
link_params.color = LLColor4::grey;
link_params.readonly_color = LLColor4::grey;
// <FS:Ansariel> Custom URI query part color
//link_params.color = LLColor4::grey;
//link_params.readonly_color = LLColor4::grey;
static LLUIColor query_part_color = LLUIColorTable::getInstance()->getColor("UriQueryPartColor", LLColor4::grey);
link_params.color = query_part_color;
link_params.readonly_color = query_part_color;
// </FS:Ansariel>
// <FS:Ansariel> Unfail URI display; add tooltip for query part
//appendAndHighlightTextImpl(label, part, link_params, match.underlineOnHoverOnly());
appendAndHighlightTextImpl(label, part, link_params, input_params.is_name_slurl ? false : match.underlineOnHoverOnly());

View File

@ -1345,4 +1345,7 @@
<color
name="MoneyTrackerDecrease"
reference="Red" />
<color
name="UriQueryPartColor"
reference="Gray" />
</colors>

View File

@ -1345,4 +1345,7 @@
<color
name="MoneyTrackerDecrease"
reference="Red" />
<color
name="UriQueryPartColor"
reference="Gray" />
</colors>

View File

@ -1300,4 +1300,7 @@
<color
name="MoneyTrackerDecrease"
reference="Red" />
<color
name="UriQueryPartColor"
reference="Gray" />
</colors>