Cosmetic SideSelector, Sidebar and Chartbar heights

.. all need to line up, so they aren't different by a matter of a
   small number of pixels as that leads to a jarring experience.
This commit is contained in:
Mark Liversedge
2020-06-17 16:35:45 +01:00
parent 9dbfc10e04
commit b66f65e129
2 changed files with 4 additions and 4 deletions

View File

@@ -290,7 +290,7 @@ GcSplitterHandle::init(QString title, Qt::Orientation orientation,
// set handle size according to font metric
QFont font;
QFontMetrics fm(font);
bigHandle = fm.height() + 8;
bigHandle = fm.height() + 16;
smallHandle = fm.height() + 5;
// use the sizes as set
@@ -403,7 +403,7 @@ GcSplitterControl::GcSplitterControl(QWidget *parent) : QToolBar(parent)
{
setContentsMargins(0,0,0,0);
setFixedHeight(22 *dpiYFactor);
setIconSize(QSize(14 *dpiXFactor,14 *dpiYFactor));
setIconSize(QSize(18 *dpiXFactor,18 *dpiYFactor));
setToolButtonStyle(Qt::ToolButtonIconOnly);
setAutoFillBackground(false);

View File

@@ -121,8 +121,8 @@ NewSideBar::configChanged(qint32)
{
QFont font;
QFontMetrics fm(font);
top->setFixedHeight(fm.height() + 8); // no scaling...
bottom->setFixedHeight(fm.height() + 4); // no scaling...
top->setFixedHeight(fm.height() + 16); // no scaling...
bottom->setFixedHeight(22 * dpiXFactor);
QColor col=GColor(CCHROME);
QString style=QString("QWidget { background: rgb(%1,%2,%3); }").arg(col.red()).arg(col.green()).arg(col.blue());
top->setStyleSheet(style);