Apply logo fix also to AboutDialog (#327)

This commit is contained in:
nico 2018-02-12 13:59:47 +01:00 committed by xarkes
parent 524be44dc2
commit 4f484eb1f4

View File

@ -2,6 +2,7 @@
#include "AboutDialog.h" #include "AboutDialog.h"
#include "ui_AboutDialog.h" #include "ui_AboutDialog.h"
#include "r_version.h" #include "r_version.h"
#include "utils/Configuration.h"
AboutDialog::AboutDialog(QWidget *parent) : AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
@ -9,9 +10,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
ui->logoSvgWidget->load(Config()->getLogoFile());
QString logoFile = (palette().window().color().value() < 127) ? ":/img/cutter_white_plain.svg" : ":/img/cutter_plain.svg";
ui->logoSvgWidget->load(logoFile);
ui->label->setText(tr("<h1>Cutter</h1>" ui->label->setText(tr("<h1>Cutter</h1>"
"Version " CUTTER_VERSION "<br/>" "Version " CUTTER_VERSION "<br/>"