diff --git a/src/widget/form/settings/aboutform.cpp b/src/widget/form/settings/aboutform.cpp index ee705a06b..5e3fc0a15 100644 --- a/src/widget/form/settings/aboutform.cpp +++ b/src/widget/form/settings/aboutform.cpp @@ -22,6 +22,7 @@ #include "src/widget/tool/recursivesignalblocker.h" #include "src/net/updatecheck.h" +#include "src/widget/style.h" #include "src/widget/translator.h" #include "src/persistence/profile.h" #include "src/persistence/settings.h" @@ -192,8 +193,8 @@ void AboutForm::onUpdateCheckFailed() QString AboutForm::createLink(QString path, QString text) const { return QString::fromUtf8( - "%2") - .arg(path, text); + "%3") + .arg(path, Style::getColor(Style::Link).name(), text); } AboutForm::~AboutForm() diff --git a/src/widget/style.cpp b/src/widget/style.cpp index f4a454ab1..69fe0a830 100644 --- a/src/widget/style.cpp +++ b/src/widget/style.cpp @@ -136,7 +136,8 @@ QMap Style::aliasColors = {{Green, "green"}, {ThemeMediumDark, "themeMediumDark"}, {ThemeMedium, "themeMedium"}, {ThemeLight, "themeLight"}, - {Action, "action"}}; + {Action, "action"}, + {Link, "link"}}; // stylesheet filename, font -> stylesheet // QString implicit sharing deduplicates stylesheets rather than constructing a new one each time @@ -397,7 +398,8 @@ void Style::initDictColor() {"@groundExtra", Style::getColor(Style::GroundExtra).name()}, {"@groundBase", Style::getColor(Style::GroundBase).name()}, {"@orange", Style::getColor(Style::Orange).name()}, - {"@action", Style::getColor(Style::Action).name()}}; + {"@action", Style::getColor(Style::Action).name()}, + {"@link", Style::getColor(Style::Link).name()}}; } QString Style::getThemePath() diff --git a/src/widget/style.h b/src/widget/style.h index 3bb7a10f6..0c3eb50fd 100644 --- a/src/widget/style.h +++ b/src/widget/style.h @@ -44,7 +44,8 @@ public: ThemeMediumDark, ThemeMedium, ThemeLight, - Action + Action, + Link }; enum Font diff --git a/themes/dark/chatArea/innerStyle.css b/themes/dark/chatArea/innerStyle.css index 4756642fd..199500b66 100644 --- a/themes/dark/chatArea/innerStyle.css +++ b/themes/dark/chatArea/innerStyle.css @@ -32,6 +32,6 @@ p { } a { - color: #d292ff; + color: @link; font-weight: bold } diff --git a/themes/dark/palette.ini b/themes/dark/palette.ini index 968772eba..9fe77969c 100644 --- a/themes/dark/palette.ini +++ b/themes/dark/palette.ini @@ -13,3 +13,4 @@ themeMediumDark="#2a2a2a" themeMedium="#100f0f" themeLight="#201f1f" action="#546eff" +link="#d292ff" diff --git a/themes/default/chatArea/innerStyle.css b/themes/default/chatArea/innerStyle.css index 9a99959ca..1b6ebc7ae 100644 --- a/themes/default/chatArea/innerStyle.css +++ b/themes/default/chatArea/innerStyle.css @@ -31,5 +31,5 @@ p { } a { - color: blue; + color: @link; } diff --git a/themes/default/palette.ini b/themes/default/palette.ini index da5fd3d03..f7386424c 100644 --- a/themes/default/palette.ini +++ b/themes/default/palette.ini @@ -13,3 +13,4 @@ themeMediumDark="#2a2a2a" themeMedium="#414141" themeLight="#4e4e4e" action="#1818FF" +link="#0000ff"