From d8f7b5a3e64242a760f289aa2c541b87b6aa1b93 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 19 Oct 2024 12:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A7=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dde-file-manager-lib/views/dfilemanagerwindow.cpp | 9 +++++++-- dde-file-manager-lib/views/dtoolbar.cpp | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dde-file-manager-lib/views/dfilemanagerwindow.cpp b/dde-file-manager-lib/views/dfilemanagerwindow.cpp index 44483b9..2701bfb 100644 --- a/dde-file-manager-lib/views/dfilemanagerwindow.cpp +++ b/dde-file-manager-lib/views/dfilemanagerwindow.cpp @@ -1051,10 +1051,15 @@ void DFileManagerWindow::initTabBar() d->tabBar->setFixedHeight(24); d->newTabButton = new QPushButton(this); + d->newTabButton->setFixedSize(25, 25); //d->newTabButton->setObjectName("NewTabButton"); + // 设置按钮样式 d->newTabButton->setText("+"); - d->newTabButton->setFixedSize(25, 24); - //d->newTabButton->hide(); + QFont font = d->newTabButton->font(); + font.setPointSize(font.pointSize()); // 调大字体 + font.setWeight(QFont::Light); + d->newTabButton->setFont(font); + } void DFileManagerWindow::initViewLayout() diff --git a/dde-file-manager-lib/views/dtoolbar.cpp b/dde-file-manager-lib/views/dtoolbar.cpp index 85a6b4d..72f7a6b 100644 --- a/dde-file-manager-lib/views/dtoolbar.cpp +++ b/dde-file-manager-lib/views/dtoolbar.cpp @@ -98,9 +98,9 @@ void DToolBar::initUI() QHBoxLayout* mainLayout = new QHBoxLayout; mainLayout->addWidget(m_addressToolBar); - mainLayout->addSpacing(10); + mainLayout->addSpacing(3); mainLayout->addWidget(m_contollerToolBar); - mainLayout->addSpacing(10); + mainLayout->addSpacing(3); mainLayout->addWidget(m_settingsButton); mainLayout->setSpacing(0); mainLayout->setContentsMargins(14, 0, 14, 0);