forked from qt-creator/qt-creator
Fix bug of default background color in Android spashscreen
If the manifest file was opened even if the parameters of the Android splashscreen were not changed, the plugin always set the default background color inside splashscreen.xml (0xffffff) Change-Id: Id6e16dfffb2c62f3ea16faf5e85d13a1b56d80c7 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -489,6 +489,7 @@ void SplashScreenContainerWidget::setSticky(bool sticky)
|
||||
void SplashScreenContainerWidget::setBackgroundColor(const QColor &color)
|
||||
{
|
||||
if (color != m_splashScreenBackgroundColor) {
|
||||
m_splashScreenBackgroundColor = color;
|
||||
m_backgroundColor->setStyleSheet(QString("QToolButton {background-color: %1; border: 1px solid gray;}").arg(color.name()));
|
||||
|
||||
for (auto &&imageWidget : m_imageWidgets)
|
||||
@@ -497,8 +498,6 @@ void SplashScreenContainerWidget::setBackgroundColor(const QColor &color)
|
||||
imageWidget->setBackgroundColor(color);
|
||||
for (auto &&imageWidget : m_landscapeImageWidgets)
|
||||
imageWidget->setBackgroundColor(color);
|
||||
|
||||
m_splashScreenBackgroundColor = color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user