mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user