Qt: Adjust hyperlink color for Cobalt and Pizza theme

This commit is contained in:
kamfretoz 2023-06-27 19:51:21 +07:00 committed by refractionpcsx2
parent 7a6c0c6b4b
commit 76ae5f3b12
1 changed files with 3 additions and 2 deletions

View File

@ -238,7 +238,7 @@ void QtHost::SetStyleFromSettings()
standardPalette.setColor(QPalette::Text, Qt::black); standardPalette.setColor(QPalette::Text, Qt::black);
standardPalette.setColor(QPalette::Button, extr); standardPalette.setColor(QPalette::Button, extr);
standardPalette.setColor(QPalette::ButtonText, Qt::black); standardPalette.setColor(QPalette::ButtonText, Qt::black);
standardPalette.setColor(QPalette::Link, Qt::black); standardPalette.setColor(QPalette::Link, highlight.darker());
standardPalette.setColor(QPalette::Highlight, highlight); standardPalette.setColor(QPalette::Highlight, highlight);
standardPalette.setColor(QPalette::HighlightedText, Qt::white); standardPalette.setColor(QPalette::HighlightedText, Qt::white);
standardPalette.setColor(QPalette::Active, QPalette::Button, extr); standardPalette.setColor(QPalette::Active, QPalette::Button, extr);
@ -332,6 +332,7 @@ void QtHost::SetStyleFromSettings()
const QColor royalBlue(29, 41, 81); const QColor royalBlue(29, 41, 81);
const QColor darkishBlue(17, 30, 108); const QColor darkishBlue(17, 30, 108);
const QColor highlight(36, 93, 218); const QColor highlight(36, 93, 218);
const QColor link(0, 202, 255);
QPalette darkPalette; QPalette darkPalette;
darkPalette.setColor(QPalette::Window, royalBlue); darkPalette.setColor(QPalette::Window, royalBlue);
@ -343,7 +344,7 @@ void QtHost::SetStyleFromSettings()
darkPalette.setColor(QPalette::Text, Qt::white); darkPalette.setColor(QPalette::Text, Qt::white);
darkPalette.setColor(QPalette::Button, darkishBlue); darkPalette.setColor(QPalette::Button, darkishBlue);
darkPalette.setColor(QPalette::ButtonText, Qt::white); darkPalette.setColor(QPalette::ButtonText, Qt::white);
darkPalette.setColor(QPalette::Link, Qt::white); darkPalette.setColor(QPalette::Link, link);
darkPalette.setColor(QPalette::Highlight, highlight); darkPalette.setColor(QPalette::Highlight, highlight);
darkPalette.setColor(QPalette::HighlightedText, Qt::white); darkPalette.setColor(QPalette::HighlightedText, Qt::white);