Improvements on the system theme
This commit is contained in:
parent
f108b8b915
commit
1716502eff
35 changed files with 348 additions and 425 deletions
|
|
@ -370,3 +370,17 @@ utils::markdownToHtml(const QString &text)
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString
|
||||
utils::linkColor()
|
||||
{
|
||||
QSettings settings;
|
||||
const auto theme = settings.value("user/theme", "light").toString();
|
||||
|
||||
if (theme == "light")
|
||||
return "#0077b5";
|
||||
else if (theme == "dark")
|
||||
return "#38A3D8";
|
||||
|
||||
return QPalette().color(QPalette::Link).name();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue