Commit c7d8f68e authored by Dominik Haumann's avatar Dominik Haumann Committed by Christoph Cullmann
Browse files

Remove margins in File Browser Toolbar + Git Widget

Followup-commit to 2af20722
parent 392feb37
Pipeline #138637 passed with stage
in 3 minutes and 24 seconds
......@@ -52,6 +52,7 @@ KateFileBrowser::KateFileBrowser(KTextEditor::MainWindow *mainWindow, QWidget *p
m_toolbar->setMovable(false);
m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
m_toolbar->setContextMenuPolicy(Qt::NoContextMenu);
m_toolbar->layout()->setContentsMargins(0, 0, 0, 0);
// ensure reasonable icons sizes, like e.g. the quick-open and co. icons
// the normal toolbar sizes are TOO large, e.g. for scaled stuff even more!
......
......@@ -219,6 +219,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
});
m_commitBtn = toolButton(QStringLiteral("vcs-commit"), QString(), i18n("Commit"), Qt::ToolButtonTextBesideIcon);
m_commitBtn->setMinimumHeight(16);
m_pushBtn = toolButton(QStringLiteral("vcs-push"), i18n("Git push"));
connect(m_pushBtn, &QToolButton::clicked, this, [this]() {
......@@ -305,6 +306,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
// This Widget's layout
setLayout(new QVBoxLayout);
this->layout()->addWidget(m_stackWidget);
this->layout()->setContentsMargins(0, 0, 0, 0);
}
GitWidget::~GitWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment