fix previewwidget bgcolor

This commit is contained in:
likehomedream 2023-11-03 15:56:13 +08:00
parent b7974a5a96
commit b5e8627281
5 changed files with 28 additions and 1 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);