Branding: fall back to original app palette

main
Adriaan de Groot 8 years ago
parent 14912d6c63
commit daf5b025ce

@ -104,8 +104,12 @@ ProgressTreeDelegate::paintViewStep( QPainter* painter,
{
painter->setPen( Calamares::Branding::instance()->
styleString( Calamares::Branding::SidebarTextSelect ) );
painter->setBrush( QColor( Calamares::Branding::instance()->
styleString( Calamares::Branding::SidebarTextHighlight ) ) );
QString textHighlight = Calamares::Branding::instance()->
styleString( Calamares::Branding::SidebarTextHighlight );
if ( textHighlight.isEmpty() )
painter->setBrush( APP->mainWindow()->palette().background() );
else
painter->setBrush( QColor( textHighlight ) );
}
painter->fillRect( option.rect, painter->brush().color() );

Loading…
Cancel
Save