# HG changeset patch # User Wuzzy # Date 1491859923 -7200 # Node ID a7c08e4748ff060ee9813c0bd44ae90ca0168aee # Parent 072ece492a65bbc4b868ff493e04f15d97363088 Use the same link color consistently in frontend diff -r 072ece492a65 -r a7c08e4748ff QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Mon Apr 10 23:10:56 2017 +0200 +++ b/QTfrontend/hwform.cpp Mon Apr 10 23:32:03 2017 +0200 @@ -411,6 +411,7 @@ void HWForm::CustomizePalettes() { + // Scroll bar widget palette QList allSBars = findChildren(); QPalette pal = palette(); pal.setColor(QPalette::WindowText, QColor(0xff, 0xcc, 0x00)); @@ -420,6 +421,11 @@ for (int i = 0; i < allSBars.size(); ++i) allSBars.at(i)->setPalette(pal); + + // Set default hyperlink color + QPalette appPal = qApp->palette(); + appPal.setColor(QPalette::Link, QColor(0xff, 0xff, 0x6e)); + qApp->setPalette(appPal); } void HWForm::UpdateWeapons() diff -r 072ece492a65 -r a7c08e4748ff QTfrontend/ui/widget/about.cpp --- a/QTfrontend/ui/widget/about.cpp Mon Apr 10 23:10:56 2017 +0200 +++ b/QTfrontend/ui/widget/about.cpp Mon Apr 10 23:32:03 2017 +0200 @@ -71,10 +71,6 @@ QLabel *lbl1 = new QLabel(this); lbl1->setOpenExternalLinks(true); lbl1->setText( - "" //: %1 contains Hedgewars' version number "

"+QString(tr("Hedgewars %1")).arg(*cVersionString) + "

" //: “Revision” stands for a revision in Mercurial, a distributed version control system. %1 is the revision, %2 is the hexadecimal hash. @@ -100,9 +96,8 @@ /* Library information */ - QString libinfo = ""; //: For the version numbers of Hedgewars' software dependencies - libinfo.append(QString(tr("Dependency versions:") + QString("
"))); + QString libinfo = QString(tr("Dependency versions:") + QString("
")); #ifdef __GNUC__ libinfo.append(QString(tr("GCC: %1")).arg(__VERSION__));