From 963e19b42b807492c7475f07203339d19dda4c61 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Sat, 28 Jul 2018 13:54:25 +0200 Subject: [PATCH] Update ui_qt_themes.h (#7021) * Update ui_qt_themes.h * Update ui_qt_window.cpp --- ui/drivers/qt/ui_qt_themes.h | 13 ++++++++----- ui/drivers/qt/ui_qt_window.cpp | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ui/drivers/qt/ui_qt_themes.h b/ui/drivers/qt/ui_qt_themes.h index 0c530e10c2..1946618a52 100644 --- a/ui/drivers/qt/ui_qt_themes.h +++ b/ui/drivers/qt/ui_qt_themes.h @@ -10,10 +10,10 @@ static const QString qt_theme_default_stylesheet = QStringLiteral("" " border: 1px solid #ddd;\n" "}\n" "ThumbnailWidget#thumbnailWidget, ThumbnailLabel#thumbnailGridLabel, QLabel#thumbnailQLabel {\n" - " background-color:#555555;\n" + " background-color:#d4d4d4;\n" "}\n" "ThumbnailWidget#thumbnailWidgetSelected {\n" - " background-color:#555555;\n" + " background-color:#d4d4d4;\n" " border:3px solid %1;\n" "}\n" ); @@ -284,7 +284,7 @@ static const QString qt_theme_dark_stylesheet = QStringLiteral("" " padding-left:5px;\n" " padding-right:5px;\n" "}\n" - "QTableWidget {\n" + "QTableWidget {\n" " background-color:rgb(25,25,25);\n" " alternate-background-color:rgb(40,40,40);\n" "}\n" @@ -394,10 +394,13 @@ static const QString qt_theme_dark_stylesheet = QStringLiteral("" " background-color:solid;\n" "}\n" "ThumbnailWidget#thumbnailWidget, ThumbnailLabel#thumbnailGridLabel, QLabel#thumbnailQLabel {\n" - " background-color:#555555;\n" + " background-color:rgb(40,40,40);\n" "}\n" "ThumbnailWidget#thumbnailWidgetSelected {\n" - " background-color:#555555;\n" + " background-color:rgb(40,40,40);\n" " border:3px solid %1;\n" "}\n" + "QScrollArea QWidget {\n" + "background:rgb(25,25,25);\n" + "}\n" ); diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index 0b8d94b9ea..fd9382c2d4 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -626,6 +626,7 @@ MainWindow::MainWindow(QWidget *parent) : m_gridWidget->layout()->addWidget(m_gridScrollArea); m_gridWidget->layout()->setAlignment(Qt::AlignCenter); + m_gridWidget->layout()->setContentsMargins(0, 0, 0, 0); m_gridProgressWidget->setLayout(gridProgressLayout); gridProgressLayout->setContentsMargins(0, 0, 0, 0);