Fix background of branding placeholder.
This commit is contained in:
parent
4ee9f68ceb
commit
50c40e4272
@ -48,6 +48,15 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
|||||||
sideLayout->addLayout( logoLayout );
|
sideLayout->addLayout( logoLayout );
|
||||||
logoLayout->addStretch();
|
logoLayout->addStretch();
|
||||||
QLabel* logoLabel = new QLabel( "branding\ngoes\nhere", sideBox );
|
QLabel* logoLabel = new QLabel( "branding\ngoes\nhere", sideBox );
|
||||||
|
{
|
||||||
|
QPalette plt = sideBox->palette();
|
||||||
|
sideBox->setAutoFillBackground( true );
|
||||||
|
plt.setColor( sideBox->backgroundRole(), QColor( "#292F34" ) );
|
||||||
|
plt.setColor( sideBox->foregroundRole(), Qt::white );
|
||||||
|
sideBox->setPalette( plt );
|
||||||
|
logoLabel->setPalette( plt );
|
||||||
|
}
|
||||||
|
logoLabel->setAlignment( Qt::AlignCenter );
|
||||||
logoLabel->setFixedSize( 80, 80 );
|
logoLabel->setFixedSize( 80, 80 );
|
||||||
logoLayout->addWidget( logoLabel );
|
logoLayout->addWidget( logoLabel );
|
||||||
logoLayout->addStretch();
|
logoLayout->addStretch();
|
||||||
|
Loading…
Reference in New Issue
Block a user