mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-30 06:40:05 +00:00
Removed inline styling
This commit is contained in:
parent
57aef447b3
commit
11a77a4353
@ -21,37 +21,18 @@ ConfigureWeb::ConfigureWeb(QWidget* parent)
|
||||
|
||||
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() {
|
||||
ui->web_credentials_disclaimer->setWordWrap(true);
|
||||
ui->telemetry_learn_more->setOpenExternalLinks(true);
|
||||
ui->telemetry_learn_more->setText(tr("<a "
|
||||
+ getColor() +
|
||||
"href='https://citra-emu.org/entry/"
|
||||
"telemetry-and-why-thats-a-good-thing/'>Learn more</a>"));
|
||||
|
||||
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->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->edit_username->setText(QString::fromStdString(Settings::values.citra_username));
|
||||
|
Loading…
Reference in New Issue
Block a user