Update our url stuffs!
Adds support for JIRA link labels from Alchemy. (Made less of a mess by me) Adds support for x-grid-info, the future of x-grid-info-location from Alchemy. Updates uriparser latest from Alchemy. Updates llstring to be more in line with upstream Alchemy. Fixes our LLURI Implementation Updates LLURLAction to modern C++ stuffies~ Adds Email protocol support from alchemy Sync LLSLURL with Alchemy, adding x-grid-info support. Also keep NoProtocol Support because yaaassss~ (also we won't suffer from MAINT-5019 because we're not dumb.)
This commit is contained in:
@@ -4238,6 +4238,23 @@ void LLTextEditor::appendTextImpl(const std::string &new_text, const LLStyleSP s
|
||||
{
|
||||
setLastSegmentToolTip(match.getTooltip());
|
||||
}
|
||||
|
||||
// show query part of url with gray color only for LLUrlEntryHTTP and LLUrlEntryHTTPNoProtocol url entries
|
||||
std::string label = match.getQuery();
|
||||
if (!label.empty())
|
||||
{
|
||||
/* Singu Note: Upstream uses hardcoded Grey here, they have no care for skins, this could be awful! For now just make it a normal link
|
||||
link_params.color = LLColor4::grey;
|
||||
link_params.readonly_color = LLColor4::grey;
|
||||
appendAndHighlightTextImpl(label, part, link_params, match.underlineOnHoverOnly());*/
|
||||
append_link(label);
|
||||
|
||||
// set the tooltip for the query part of url
|
||||
if (tooltip_required)
|
||||
{
|
||||
setLastSegmentToolTip(match.getTooltip());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!replace_links) // Still link the link itself
|
||||
{
|
||||
@@ -4804,7 +4821,7 @@ BOOL LLTextEditor::handleMouseUpOverSegment(S32 x, S32 y, MASK mask)
|
||||
if (auto style = segment->getStyle())
|
||||
{
|
||||
if (style->isLink())
|
||||
LLUrlAction::clickAction(style->getLinkHREF());
|
||||
LLUrlAction::clickAction(style->getLinkHREF(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user