diff --git a/src/module/cursorthemewidget.cpp b/src/module/cursorthemewidget.cpp index e768050..dea7b6d 100644 --- a/src/module/cursorthemewidget.cpp +++ b/src/module/cursorthemewidget.cpp @@ -17,6 +17,11 @@ void CursorThemeWidget::initPreviewWidget() { m_previewwidget = new QWidget(this); m_previewwidget->setMinimumSize(495,620); + QPalette palette; + QColor bgColor("#F5F5F5"); + palette.setColor(QPalette::Window, bgColor); + m_previewwidget->setPalette(palette); + m_previewwidget->setAutoFillBackground(true); m_preview = new CursorImageWidget(m_previewwidget,m_iconpathmap); m_preview2 = new CursorImageWidget(m_previewwidget,m_timeiconpathmap); m_previewlayout = new QVBoxLayout(m_previewwidget); diff --git a/src/module/globalthemewidget.cpp b/src/module/globalthemewidget.cpp index 6bd1425..6d2c817 100644 --- a/src/module/globalthemewidget.cpp +++ b/src/module/globalthemewidget.cpp @@ -33,7 +33,11 @@ void GlobalThemeWidget::initPreviewWidget() m_previewwidget = new QWidget(this); m_previewwidget->setMinimumSize(495,620); - m_previewwidget->setBackgroundRole(QPalette::Window); + QPalette palette; + QColor bgColor("#F5F5F5"); + palette.setColor(QPalette::Window, bgColor); + m_previewwidget->setPalette(palette); + m_previewwidget->setAutoFillBackground(true); m_preview = new GlobalImageWidget(m_previewwidget,m_wallpaperpath); diff --git a/src/module/grubthemewidget.cpp b/src/module/grubthemewidget.cpp index 2af2582..6846aa9 100644 --- a/src/module/grubthemewidget.cpp +++ b/src/module/grubthemewidget.cpp @@ -17,6 +17,12 @@ void GrubThemeWidget::initPreviewWidget() m_previewwidget->setBackgroundRole(QPalette::Window); + QPalette palette; + QColor bgColor("#F5F5F5"); + palette.setColor(QPalette::Window, bgColor); + m_previewwidget->setPalette(palette); + m_previewwidget->setAutoFillBackground(true); + m_preview = new GrubImageWidget(m_previewwidget); m_previewlayout = new QVBoxLayout(m_previewwidget); diff --git a/src/module/iconthemewidget.cpp b/src/module/iconthemewidget.cpp index 78c778b..4d4c573 100644 --- a/src/module/iconthemewidget.cpp +++ b/src/module/iconthemewidget.cpp @@ -19,6 +19,12 @@ void IconThemeWidget::initPreviewWidget() m_previewwidget = new QWidget(this); m_previewwidget->setMinimumSize(550,620); + QPalette palette; + QColor bgColor("#F5F5F5"); + palette.setColor(QPalette::Window, bgColor); + m_previewwidget->setPalette(palette); + m_previewwidget->setAutoFillBackground(true); + m_previewstack = new QStackedWidget(m_previewwidget); m_preview = new ImageWidget(m_previewwidget,m_iconpathmap); diff --git a/src/module/plymouththemewidget.cpp b/src/module/plymouththemewidget.cpp index 36ca55b..959dfb4 100644 --- a/src/module/plymouththemewidget.cpp +++ b/src/module/plymouththemewidget.cpp @@ -18,6 +18,12 @@ void PlymouthThemeWidget::initPreviewWidget() m_previewwidget->setBackgroundRole(QPalette::Window); + QPalette palette; + QColor bgColor("#F5F5F5"); + palette.setColor(QPalette::Window, bgColor); + m_previewwidget->setPalette(palette); + m_previewwidget->setAutoFillBackground(true); + m_preview = new PlymouthImageWidget(m_previewwidget); m_previewlayout = new QVBoxLayout(m_previewwidget);