[summary] Name widgets for styling
This commit is contained in:
parent
5d577371e7
commit
27f965deb6
@ -44,6 +44,7 @@ SummaryPage::SummaryPage( const SummaryViewStep* thisViewStep, QWidget* parent )
|
|||||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||||
|
|
||||||
QLabel* headerLabel = new QLabel( this );
|
QLabel* headerLabel = new QLabel( this );
|
||||||
|
headerLabel->setObjectName( "summaryTitle" );
|
||||||
CALAMARES_RETRANSLATE( if ( Calamares::Settings::instance()->isSetupMode() )
|
CALAMARES_RETRANSLATE( if ( Calamares::Settings::instance()->isSetupMode() )
|
||||||
headerLabel->setText( tr( "This is an overview of what will happen once you start "
|
headerLabel->setText( tr( "This is an overview of what will happen once you start "
|
||||||
"the setup procedure." ) );
|
"the setup procedure." ) );
|
||||||
@ -169,6 +170,7 @@ QLabel*
|
|||||||
SummaryPage::createTitleLabel( const QString& text ) const
|
SummaryPage::createTitleLabel( const QString& text ) const
|
||||||
{
|
{
|
||||||
QLabel* label = new QLabel( text );
|
QLabel* label = new QLabel( text );
|
||||||
|
label->setObjectName( "summaryItemTitle" );
|
||||||
QFont fnt = font();
|
QFont fnt = font();
|
||||||
fnt.setWeight( QFont::Light );
|
fnt.setWeight( QFont::Light );
|
||||||
fnt.setPointSize( CalamaresUtils::defaultFontSize() * 2 );
|
fnt.setPointSize( CalamaresUtils::defaultFontSize() * 2 );
|
||||||
@ -182,6 +184,7 @@ QLabel*
|
|||||||
SummaryPage::createBodyLabel( const QString& text ) const
|
SummaryPage::createBodyLabel( const QString& text ) const
|
||||||
{
|
{
|
||||||
QLabel* label = new QLabel;
|
QLabel* label = new QLabel;
|
||||||
|
label->setObjectName( "summaryItemBody" );
|
||||||
label->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
label->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
||||||
QPalette pal( palette() );
|
QPalette pal( palette() );
|
||||||
pal.setColor( WindowBackground, palette().window().color().lighter( 108 ) );
|
pal.setColor( WindowBackground, palette().window().color().lighter( 108 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user