[welcome] Allow theming the international language-select icon

This commit is contained in:
Adriaan de Groot 2019-05-31 16:59:38 +02:00
parent 75ce391e7e
commit 07c638ed48
5 changed files with 31 additions and 1 deletions

View file

@ -137,6 +137,15 @@ WelcomeViewStep::setConfigurationMap( const QVariantMap& configurationMap )
} );
future->setFuture( handler->queryRaw() );
}
QString language = CalamaresUtils::getString( configurationMap, "languageIcon" );
if ( !language.isEmpty() )
{
auto icon = QIcon::fromTheme( language );
if ( !icon.isNull() )
m_widget->setLanguageIcon( icon );
}
}
Calamares::RequirementsList