diff --git a/src/DockManager.h b/src/DockManager.h index 198cdb5..3a8d740 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -232,7 +232,7 @@ public: DockAreaHasAutoHideButton = 0x08, //!< If the flag is set each dock area has a auto hide menu button LeftSideBarPrioritizeIconOnly = 0x10, //!< If the flag is set each container will have a left side bar RightSideBarPrioritizeIconOnly = 0x20, //!< If the flag is set each container will have a right side bar - BottomSideBarPrioritizeIconOnly = 0x40, //!< If the flag is set right side bar will prioritize showing icons only over text + BottomSideBarPrioritizeIconOnly = 0x40, //!< If the flag is set bottom side bar will prioritize showing icons only over text DockAreaOverlayHasTitle = 0x80, //!< If the flag is set overlay dock area title bar will show the window title DefaultAutoHideConfig = DockContainerHasLeftSideBar diff --git a/src/DockWidgetSideTab.cpp b/src/DockWidgetSideTab.cpp index eae6717..c4868d7 100644 --- a/src/DockWidgetSideTab.cpp +++ b/src/DockWidgetSideTab.cpp @@ -304,6 +304,13 @@ void CDockWidgetSideTab::updateOrientationAndSpacing(SideTabBarArea area) d->IconLabel->setContentsMargins(Spacing / 2, Spacing / 2, Spacing, Spacing / 2); return; } + if (CDockManager::testConfigFlag(CDockManager::BottomSideBarPrioritizeIconOnly) && area == Bottom) + { + d->TitleLabel->hide(); + d->TitleLayout->setContentsMargins(0, 0, 0, 0); + d->IconLabel->setContentsMargins(Spacing / 2, Spacing / 2, Spacing / 2, Spacing / 2); + return; + } d->TitleLabel->show(); }