fix previewwidget bgcolor
This commit is contained in:
parent
b7974a5a96
commit
b5e8627281
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue