diff --git a/src/calamares/CalamaresApplication.cpp b/src/calamares/CalamaresApplication.cpp index 17a8297ff..b8e2b8e0f 100644 --- a/src/calamares/CalamaresApplication.cpp +++ b/src/calamares/CalamaresApplication.cpp @@ -76,7 +76,8 @@ CalamaresApplication::init() initBranding(); - setWindowIcon( QIcon( "from branding" ) ); + setWindowIcon( QIcon( Calamares::Branding::instance()-> + imagePath( Calamares::Branding::ProductIcon ) ) ); initPlugins(); } diff --git a/src/calamares/CalamaresWindow.cpp b/src/calamares/CalamaresWindow.cpp index c944df2da..9201e8cd5 100644 --- a/src/calamares/CalamaresWindow.cpp +++ b/src/calamares/CalamaresWindow.cpp @@ -23,6 +23,7 @@ #include "utils/CalamaresUtilsGui.h" #include "utils/CalamaresStyle.h" #include "utils/Logger.h" +#include "Branding.h" #include #include @@ -36,6 +37,10 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) // Hide close button setWindowFlags( Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint ); + setWindowTitle( tr( "%1 Installer" ) + .arg( Calamares::Branding::instance()-> + string( Calamares::Branding::ProductName ) ) ); + setMinimumSize( 1010, 560 ); QSize availableSize = qApp->desktop()->screenGeometry( this ).size(); int w = qBound( 1010, CalamaresUtils::defaultFontHeight() * 60, availableSize.width() ); @@ -58,7 +63,7 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) QHBoxLayout* logoLayout = new QHBoxLayout; sideLayout->addLayout( logoLayout ); logoLayout->addStretch(); - QLabel* logoLabel = new QLabel( "branding\ngoes\nhere", sideBox ); + QLabel* logoLabel = new QLabel( sideBox ); { QPalette plt = sideBox->palette(); sideBox->setAutoFillBackground( true ); @@ -69,6 +74,9 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) } logoLabel->setAlignment( Qt::AlignCenter ); logoLabel->setFixedSize( 80, 80 ); + logoLabel->setPixmap( Calamares::Branding::instance()-> + image( Calamares::Branding::ProductIcon, + logoLabel->size() ) ); logoLayout->addWidget( logoLabel ); logoLayout->addStretch();