]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make zoom slider and free space bar a little smaller by default
authorNate Graham <nate@kde.org>
Thu, 10 Dec 2020 16:28:50 +0000 (09:28 -0700)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 23 Jan 2021 23:15:56 +0000 (23:15 +0000)
This makes more room for the new explanatory label for the zoom slider.
The zoom slider in particular was huge, and probably would have stood to
be reduced in width anyway even if we didn't add an explanaory label.

src/statusbar/dolphinstatusbar.cpp

index 87eab7c9576878966b70fc0c64079ddb2c31e84a..7cba8e346d60fd78a0b9ecbf1f1c5d38d57ddb9e 100644 (file)
@@ -104,14 +104,14 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent) :
     m_label->setFixedHeight(contentHeight);
     m_label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
 
-    m_zoomSlider->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
+    m_zoomSlider->setMaximumWidth(fontMetrics.averageCharWidth() * 15);
 
     m_spaceInfo->setFixedHeight(contentHeight);
     m_spaceInfo->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
     m_spaceInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
 
     m_progressBar->setFixedHeight(zoomSliderHeight);
-    m_progressBar->setMaximumWidth(fontMetrics.averageCharWidth() * 25);
+    m_progressBar->setMaximumWidth(fontMetrics.averageCharWidth() * 20);
 
     QHBoxLayout* topLayout = new QHBoxLayout(this);
     topLayout->setContentsMargins(2, 0, 2, 0);