From 15e2be85b5c431fcb6ceec90ec8b67278a6bd6af Mon Sep 17 00:00:00 2001 From: Kloen <kloen@outlawkiwi.com> Date: Wed, 23 May 2018 02:51:19 +0200 Subject: [PATCH] citra-qt: Change link colors to a more readable one when using the dark theme --- src/citra_qt/aboutdialog.ui | 2 +- src/citra_qt/configuration/configure_web.cpp | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/aboutdialog.ui b/src/citra_qt/aboutdialog.ui index 43e4049c0..1c0bf0816 100644 --- a/src/citra_qt/aboutdialog.ui +++ b/src/citra_qt/aboutdialog.ui @@ -115,7 +115,7 @@ p, li { white-space: pre-wrap; } <item> <widget class="QLabel" name="labelLinks"> <property name="text"> - <string><html><head/><body><p><a href="https://citra-emu.org/"><span style=" text-decoration: underline; color:#0000ff;">Website</span></a> | <a href="https://community.citra-emu.org/"><span style=" text-decoration: underline; color:#0000ff;">Forum</span></a> | <a href="https://github.com/citra-emu"><span style=" text-decoration: underline; color:#0000ff;">Source Code</span></a> | <a href="https://github.com/citra-emu/citra/graphs/contributors"><span style=" text-decoration: underline; color:#0000ff;">Contributors</span></a> | <a href="https://github.com/citra-emu/citra/blob/master/license.txt"><span style=" text-decoration: underline; color:#0000ff;">License</span></a></p></body></html></string> + <string><html><head/><body><p><a href="https://citra-emu.org/"><span style=" text-decoration: underline; color:#039be5;">Website</span></a> | <a href="https://community.citra-emu.org/"><span style=" text-decoration: underline; color:#039be5;">Forum</span></a> | <a href="https://github.com/citra-emu"><span style=" text-decoration: underline; color:#039be5;">Source Code</span></a> | <a href="https://github.com/citra-emu/citra/graphs/contributors"><span style=" text-decoration: underline; color:#039be5;">Contributors</span></a> | <a href="https://github.com/citra-emu/citra/blob/master/license.txt"><span style=" text-decoration: underline; color:#039be5;">License</span></a></p></body></html></string> </property> <property name="openExternalLinks"> <bool>true</bool> diff --git a/src/citra_qt/configuration/configure_web.cpp b/src/citra_qt/configuration/configure_web.cpp index 22d01e9f8..58e326e12 100644 --- a/src/citra_qt/configuration/configure_web.cpp +++ b/src/citra_qt/configuration/configure_web.cpp @@ -27,13 +27,18 @@ void ConfigureWeb::setConfiguration() { ui->telemetry_learn_more->setOpenExternalLinks(true); ui->telemetry_learn_more->setText(tr("<a " "href='https://citra-emu.org/entry/" - "telemetry-and-why-thats-a-good-thing/'>Learn more</a>")); + "telemetry-and-why-thats-a-good-thing/'><span " + "style=\"text-decoration: underline; " + "color:#039be5;\">Learn more</span></a>")); ui->web_signup_link->setOpenExternalLinks(true); - ui->web_signup_link->setText(tr("<a href='https://services.citra-emu.org/'>Sign up</a>")); + ui->web_signup_link->setText( + tr("<a href='https://services.citra-emu.org/'><span style=\"text-decoration: underline; " + "color:#039be5;\">Sign up</span></a>")); ui->web_token_info_link->setOpenExternalLinks(true); ui->web_token_info_link->setText( - tr("<a href='https://citra-emu.org/wiki/citra-web-service/'>What is my token?</a>")); + tr("<a href='https://citra-emu.org/wiki/citra-web-service/'><span style=\"text-decoration: " + "underline; color:#039be5;\">What is my token?</span></a>")); ui->toggle_telemetry->setChecked(Settings::values.enable_telemetry); ui->edit_username->setText(QString::fromStdString(Settings::values.citra_username));