Make URI query part color customizable
parent
aabeeadf77
commit
6e21b3e96d
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -1345,4 +1345,7 @@
|
|||
<color
|
||||
name="MoneyTrackerDecrease"
|
||||
reference="Red" />
|
||||
<color
|
||||
name="UriQueryPartColor"
|
||||
reference="Gray" />
|
||||
</colors>
|
||||
|
|
|
|||
|
|
@ -1345,4 +1345,7 @@
|
|||
<color
|
||||
name="MoneyTrackerDecrease"
|
||||
reference="Red" />
|
||||
<color
|
||||
name="UriQueryPartColor"
|
||||
reference="Gray" />
|
||||
</colors>
|
||||
|
|
|
|||
|
|
@ -1300,4 +1300,7 @@
|
|||
<color
|
||||
name="MoneyTrackerDecrease"
|
||||
reference="Red" />
|
||||
<color
|
||||
name="UriQueryPartColor"
|
||||
reference="Gray" />
|
||||
</colors>
|
||||
|
|
|
|||
Loading…
Reference in New Issue