Hardcode Calamares logo in About.
CAL-241 #close
This commit is contained in:
parent
bc112889ea
commit
bd7dd43c90
@ -13,5 +13,6 @@
|
|||||||
<file alias="images/partition-erase-auto.svg">../../data/images/partition-erase-auto.svg</file>
|
<file alias="images/partition-erase-auto.svg">../../data/images/partition-erase-auto.svg</file>
|
||||||
<file alias="images/partition-manual.svg">../../data/images/partition-manual.svg</file>
|
<file alias="images/partition-manual.svg">../../data/images/partition-manual.svg</file>
|
||||||
<file alias="images/partition-replace-os.svg">../../data/images/partition-replace-os.svg</file>
|
<file alias="images/partition-replace-os.svg">../../data/images/partition-replace-os.svg</file>
|
||||||
|
<file alias="images/squid.svg">../../data/images/squid.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -94,6 +94,10 @@ defaultPixmap( ImageType type, ImageMode mode, const QSize& size )
|
|||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partition-replace-os.svg", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partition-replace-os.svg", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Squid:
|
||||||
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/squid.svg", size );
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ enum ImageType : int
|
|||||||
PartitionAlongside,
|
PartitionAlongside,
|
||||||
PartitionEraseAuto,
|
PartitionEraseAuto,
|
||||||
PartitionManual,
|
PartitionManual,
|
||||||
PartitionReplaceOs
|
PartitionReplaceOs,
|
||||||
|
Squid
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ImageMode
|
enum ImageMode
|
||||||
|
@ -66,25 +66,32 @@ WelcomePage::WelcomePage( RequirementsChecker* requirementsChecker, QWidget* par
|
|||||||
connect( ui->aboutButton, &QPushButton::clicked,
|
connect( ui->aboutButton, &QPushButton::clicked,
|
||||||
this, [ this ]
|
this, [ this ]
|
||||||
{
|
{
|
||||||
QMessageBox::about( this,
|
QMessageBox mb( QMessageBox::Information,
|
||||||
tr( "About %1 installer" )
|
tr( "About %1 installer" )
|
||||||
.arg( CALAMARES_APPLICATION_NAME ),
|
.arg( CALAMARES_APPLICATION_NAME ),
|
||||||
tr(
|
tr(
|
||||||
"<h1>%1</h1><br/>"
|
"<h1>%1</h1><br/>"
|
||||||
"<strong>%2<br/>"
|
"<strong>%2<br/>"
|
||||||
"for %3</strong><br/><br/>"
|
"for %3</strong><br/><br/>"
|
||||||
"Copyright 2014-2015 Teo Mrnjavac <teo@kde.org><br/>"
|
"Copyright 2014-2015 Teo Mrnjavac <teo@kde.org><br/>"
|
||||||
"Thanks to: Anke Boersma, Aurélien Gâteau, Kevin Kofler, Philip Müller, "
|
"Thanks to: Anke Boersma, Aurélien Gâteau, Kevin Kofler, Philip Müller, "
|
||||||
"Pier Luigi Fiorini and Rohan Garg.<br/><br/>"
|
"Pier Luigi Fiorini and Rohan Garg.<br/><br/>"
|
||||||
"<a href=\"http://calamares.io/\">Calamares</a> "
|
"<a href=\"http://calamares.io/\">Calamares</a> "
|
||||||
"development is sponsored by <br/>"
|
"development is sponsored by <br/>"
|
||||||
"<a href=\"http://www.blue-systems.com/\">Blue Systems</a> - "
|
"<a href=\"http://www.blue-systems.com/\">Blue Systems</a> - "
|
||||||
"Liberating Software."
|
"Liberating Software."
|
||||||
)
|
)
|
||||||
.arg( CALAMARES_APPLICATION_NAME )
|
.arg( CALAMARES_APPLICATION_NAME )
|
||||||
.arg( CALAMARES_VERSION )
|
.arg( CALAMARES_VERSION )
|
||||||
.arg( Calamares::Branding::instance()->string(
|
.arg( Calamares::Branding::instance()->string(
|
||||||
Calamares::Branding::VersionedName ) ) );
|
Calamares::Branding::VersionedName ) ),
|
||||||
|
QMessageBox::Ok,
|
||||||
|
this );
|
||||||
|
mb.setIconPixmap( CalamaresUtils::defaultPixmap( CalamaresUtils::Squid,
|
||||||
|
CalamaresUtils::Original,
|
||||||
|
QSize( CalamaresUtils::defaultFontHeight() * 6,
|
||||||
|
CalamaresUtils::defaultFontHeight() * 6 ) ) );
|
||||||
|
mb.exec();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
ui->verticalLayout->insertStretch( 3 );
|
ui->verticalLayout->insertStretch( 3 );
|
||||||
|
Loading…
Reference in New Issue
Block a user