Commit c84f6b2a authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Add padding to status bar

parent 2e7248a8
...@@ -162,8 +162,11 @@ struct ViewMainPagePrivate ...@@ -162,8 +162,11 @@ struct ViewMainPagePrivate
mDocumentCountLabel->setContentsMargins(labelMargins); mDocumentCountLabel->setContentsMargins(labelMargins);
QHBoxLayout* statusBarContainerLayout = new QHBoxLayout(mStatusBarContainer); QHBoxLayout* statusBarContainerLayout = new QHBoxLayout(mStatusBarContainer);
statusBarContainerLayout->setContentsMargins(0, 0, 0, 0); // Use toolbar-like margins and spacing
statusBarContainerLayout->setSpacing(0); int margins = q->style()->pixelMetric(QStyle::PM_ToolBarItemMargin)
+ q->style()->pixelMetric(QStyle::PM_ToolBarFrameWidth);
statusBarContainerLayout->setContentsMargins(margins, margins, margins, margins);
statusBarContainerLayout->setSpacing(q->style()->pixelMetric(QStyle::PM_ToolBarItemSpacing));
statusBarContainerLayout->addWidget(mToggleSideBarButton); statusBarContainerLayout->addWidget(mToggleSideBarButton);
statusBarContainerLayout->addWidget(mToggleThumbnailBarButton); statusBarContainerLayout->addWidget(mToggleThumbnailBarButton);
statusBarContainerLayout->addStretch(); statusBarContainerLayout->addStretch();
......
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