Skip to content

Commit

Permalink
优化控件样式
Browse files Browse the repository at this point in the history
  • Loading branch information
gfdgd-xi committed Oct 19, 2024
1 parent 6b7cf39 commit d8f7b5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dde-file-manager-lib/views/dfilemanagerwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions dde-file-manager-lib/views/dtoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8f7b5a

Please sign in to comment.