Added links colors with settings feature

This commit is contained in:
defnax 2025-06-26 22:20:38 +02:00
parent 5361bed037
commit 5abefa4664
23 changed files with 170 additions and 18 deletions

View file

@ -229,9 +229,14 @@ void PostedCardView::fill()
if (urlOkay)
{
linkColor = Settings->getLinkColor();
QString colorstring = QString("%1;").arg(linkColor.name());
QString urlstr = QString("<a href=\"");
urlstr += QString(url.toEncoded());
urlstr += QString("\" ><span style=\" text-decoration: underline; color:#2255AA;\"> ");
urlstr += QString("\" ><span style=\" text-decoration: underline; color:");
urlstr += colorstring;
urlstr += QString("\"> ");
urlstr += messageName();
urlstr += QString(" </span></a>");