Removed inline styling

This commit is contained in:
Adityarup Laha 2017-10-24 19:44:56 +05:30 committed by GitHub
parent 57aef447b3
commit 11a77a4353

View File

@ -21,37 +21,18 @@ ConfigureWeb::ConfigureWeb(QWidget* parent)
ConfigureWeb::~ConfigureWeb() {} ConfigureWeb::~ConfigureWeb() {}
std::string getColor()
{
std::string ctheme = ui->theme_combobox->itemData(ui->theme_combobox->currentIndex()).toString();
if (ctheme = "Dark" || ctheme = "qdarkstyle")
{
return "color = #FFD700 ";
}
else if (ctheme = "Default" || ctheme = "default")
{
return "";
}
else
{
return null;
}
}
void ConfigureWeb::setConfiguration() { void ConfigureWeb::setConfiguration() {
ui->web_credentials_disclaimer->setWordWrap(true); ui->web_credentials_disclaimer->setWordWrap(true);
ui->telemetry_learn_more->setOpenExternalLinks(true); ui->telemetry_learn_more->setOpenExternalLinks(true);
ui->telemetry_learn_more->setText(tr("<a " ui->telemetry_learn_more->setText(tr("<a "
+ getColor() +
"href='https://citra-emu.org/entry/" "href='https://citra-emu.org/entry/"
"telemetry-and-why-thats-a-good-thing/'>Learn more</a>")); "telemetry-and-why-thats-a-good-thing/'>Learn more</a>"));
ui->web_signup_link->setOpenExternalLinks(true); ui->web_signup_link->setOpenExternalLinks(true);
ui->web_signup_link->setText(tr("<a " + getColor() + " href='https://services.citra-emu.org/'>Sign up</a>")); ui->web_signup_link->setText(tr("<a href='https://services.citra-emu.org/'>Sign up</a>"));
ui->web_token_info_link->setOpenExternalLinks(true); ui->web_token_info_link->setOpenExternalLinks(true);
ui->web_token_info_link->setText( ui->web_token_info_link->setText(
tr("<a " + getColor() + " 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/'>What is my token?</a>"));
ui->toggle_telemetry->setChecked(Settings::values.enable_telemetry); ui->toggle_telemetry->setChecked(Settings::values.enable_telemetry);
ui->edit_username->setText(QString::fromStdString(Settings::values.citra_username)); ui->edit_username->setText(QString::fromStdString(Settings::values.citra_username));