diff --git a/dde-file-manager-lib/themes/dark/DFileManagerWindow.theme b/dde-file-manager-lib/themes/dark/DFileManagerWindow.theme index 1870c54a5f8f2082a2cebb4a435e3ea6cdd94da6..9f038f326b734d9016de68f65d44bffb095c9790 100644 --- a/dde-file-manager-lib/themes/dark/DFileManagerWindow.theme +++ b/dde-file-manager-lib/themes/dark/DFileManagerWindow.theme @@ -458,7 +458,7 @@ QScrollArea#ComputerView{ } QScrollArea#ComputerView #TitleLabel { - color: #67bdbdbd; + color: #bdbdbd; } QScrollArea#ComputerView #LineLabel { @@ -466,11 +466,11 @@ QScrollArea#ComputerView #LineLabel { } QScrollArea#ComputerView #DiskSize { - color: #67616161; + color: #616161; } QScrollArea#ComputerView ComputerViewItem QTextEdit { - color: #67bdbdbd; + color: #bdbdbd; } /*TabBar*/ diff --git a/dde-file-manager-lib/themes/dark/DStatusBar.theme b/dde-file-manager-lib/themes/dark/DStatusBar.theme index 1a2f9ca46e75ab0f1ba1e72a7cebd40d77ba38de..6938c62b98e56be3ba69f77ad1d80b23b339c8c3 100644 --- a/dde-file-manager-lib/themes/dark/DStatusBar.theme +++ b/dde-file-manager-lib/themes/dark/DStatusBar.theme @@ -1,6 +1,6 @@ DStatusBar { - color: "#67bdbdbd"; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #171717, stop: 0.98 #671d1d1d); + color: "#bdbdbd"; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #171717, stop: 0.98 #1d1d1d); border-top: 1px solid rgba(255, 255, 255, 0.1); } diff --git a/dde-file-manager-lib/themes/dark/config.ini b/dde-file-manager-lib/themes/dark/config.ini index 6350ded5be8c704778eeec0df192763ffc926ba6..58ed8b96c765a8977a54770b19847440270b11fd 100644 --- a/dde-file-manager-lib/themes/dark/config.ini +++ b/dde-file-manager-lib/themes/dark/config.ini @@ -346,7 +346,7 @@ color=#70ffffff color=white [Tab] -background=#671c1c1c +background=#1c1c1c color=#949494 border=#0d000000 [Tab:hover] diff --git a/dde-file-manager-lib/themes/light/DFileManagerWindow.theme b/dde-file-manager-lib/themes/light/DFileManagerWindow.theme index 05d067a752d4fad0125acc9dee9727c4fa0586aa..2b0cd29d419fc9319af952b5ffcefaffb040ac1b 100644 --- a/dde-file-manager-lib/themes/light/DFileManagerWindow.theme +++ b/dde-file-manager-lib/themes/light/DFileManagerWindow.theme @@ -501,7 +501,7 @@ QScrollArea#ComputerView #LineLabel { } QScrollArea#ComputerView #DiskSize { - color: #67a2a2a2; + color: #a2a2a2; } /*TabBar*/ diff --git a/dde-file-manager-lib/themes/light/DFileView.theme b/dde-file-manager-lib/themes/light/DFileView.theme index da6988742593aec5878d951e16f26787b335fcab..f2f8ba1531c3047a6e53ec47f4267a0978f52a18 100644 --- a/dde-file-manager-lib/themes/light/DFileView.theme +++ b/dde-file-manager-lib/themes/light/DFileView.theme @@ -55,7 +55,7 @@ QListView::item:hover { QHeaderView { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, - stop:0 #f8f8f8, stop:1 rgba(255, 255, 255, 0.1)); + stop:0 #f8f8f8, stop:1 rgba(255, 255, 255, 0.8)); border-bottom: 1px solid rgba(0, 0, 0, 0.1); max-height: 21px; } diff --git a/dde-file-manager-lib/themes/light/DStatusBar.theme b/dde-file-manager-lib/themes/light/DStatusBar.theme index f557a3b14b563b2f289d842365deb11e4b62efc7..cde7506f6af3989a9acab732f38cd83edf62f9aa 100644 --- a/dde-file-manager-lib/themes/light/DStatusBar.theme +++ b/dde-file-manager-lib/themes/light/DStatusBar.theme @@ -1,6 +1,6 @@ DStatusBar { - color: "#67797979"; - background-color: "#67ffffff"; + color: "#797979"; + background-color: white; } DStatusBar QLabel { diff --git a/dde-file-manager-lib/themes/light/config.ini b/dde-file-manager-lib/themes/light/config.ini index 7fc4ade06211a38b6367161e62f90a3959d9f030..404db464f6ce2867d9f380a3526020ee023a3cdb 100644 --- a/dde-file-manager-lib/themes/light/config.ini +++ b/dde-file-manager-lib/themes/light/config.ini @@ -339,12 +339,12 @@ background=#da0076F9 color=#797979 [FileView:inactive] background=#BFE4FC -color=#70797979 +color=#797979 [FileView:inactive.checked] color=#e9e9e9 [Tab] -background=#67fafafa +background=#fafafa color=#949494 border=#21000000 [Tab:hover] diff --git a/dde-file-manager-lib/views/dfilemanagerwindow.cpp b/dde-file-manager-lib/views/dfilemanagerwindow.cpp index 7013db36c64528018492764444044b69c75fcc48..5b27163826289b31ce4234e2542a7771e69a77ba 100644 --- a/dde-file-manager-lib/views/dfilemanagerwindow.cpp +++ b/dde-file-manager-lib/views/dfilemanagerwindow.cpp @@ -88,7 +88,6 @@ DWIDGET_USE_NAMESPACE const QColor DARK_TOP_BORDERCOLOR = QColor(255, 255, 255, 13); -const QColor LIGHT_TOP_BORDERCOLOR = QColor(0, 0, 0, 13); std::unique_ptr DFileManagerWindow::renameBarState{ nullptr }; std::atomic DFileManagerWindow::flagForNewWindowFromTab{ false }; @@ -951,11 +950,6 @@ void DFileManagerWindow::initTitleBar() palette.setColor(QPalette::Window, DARK_TOP_BORDERCOLOR); d->toolbar->setPalette(palette); } - else { - QPalette palette; - palette.setColor(QPalette::Window, LIGHT_TOP_BORDERCOLOR); - d->toolbar->setPalette(palette); - } connect(set_theme_action, &QAction::triggered, this, &DFileManagerWindow::onThemeChanged); } diff --git a/dde-file-manager-lib/views/dfilemanagerwindowbackground.cpp b/dde-file-manager-lib/views/dfilemanagerwindowbackground.cpp index 2d7986952065ecd0f356e7420c5c5be2bc5aef99..7ce2a5aa5c22b485aadb7af53635110ba1331dd9 100644 --- a/dde-file-manager-lib/views/dfilemanagerwindowbackground.cpp +++ b/dde-file-manager-lib/views/dfilemanagerwindowbackground.cpp @@ -14,8 +14,6 @@ DFileManagerWindowBackground::DFileManagerWindowBackground(DMainWindow *window) void DFileManagerWindowBackground::drawInWidget(QPainter *painter) { - QString theme = DThemeManager::instance()->theme(m_dmainWindow); - QList list = { BackgroundPlace::FullWindow, BackgroundPlace::Center, @@ -32,27 +30,9 @@ void DFileManagerWindowBackground::drawInWidget(QPainter *painter) QList xy = getImageXY(DFileManagerWindowBackground::BackgroundPlace(i)); int x = xy[0]; int y = xy[1]; + qDebug() << i << x << y; painter->drawImage(x, y, getImage(DFileManagerWindowBackground::BackgroundPlace(i))); } - //// 绘制半透明图层 - // 备份原来的 QPen 和 QBrush - QPen oldPen = painter->pen(); - QBrush oldBrush = painter->brush(); - if (theme == "dark") { - painter->setPen(QPen(QColor("#99252525"))); - painter->setBrush(QBrush(QColor("#99252525"))); - } - else { - painter->setPen(QPen(QColor("#99ffffff"))); - painter->setBrush(QBrush(QColor("#99ffffff"))); - } - int windowWidth = m_dmainWindow->size().width(); - int windowHeight = m_dmainWindow->size().height(); - painter->drawRect(0, 0, windowWidth, windowHeight); - // 还原原来的 QPen 和 QBrush - painter->setPen(oldPen); - painter->setBrush(oldBrush); - } void DFileManagerWindowBackground::setMainWindow(DMainWindow *window) diff --git a/debian/changelog b/debian/changelog index 91e9ebafeb768455f2ad76ad503942d4b02a908d..674447aa716f2ce4f0c4d7501f72616d6dd749e5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -dde-file-manager (4.8.27-1) UNRELEASED; urgency=medium +dde-file-manager (4.8.27-1.1) UNRELEASED; urgency=medium [ shenmo ] * 去除桌面右键全选功能