Windows: Font sizes and cosmetics

.. for the sidebar and scope bar
.. use the same and better fit for windows fonts
This commit is contained in:
Mark Liversedge
2013-03-15 17:12:58 +00:00
parent e9b3f2660e
commit ca1ecb919b
3 changed files with 13 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ GcLabel::paintEvent(QPaintEvent *)
// draw text in white behind...
QRectF off(xoff,yoff,width(),height());
painter.setPen(QColor(220,220,220,160));
painter.setPen(QColor(255,255,255,200));
painter.drawText(off, alignment(), text());
}

View File

@@ -198,7 +198,11 @@ GcScopeButton::GcScopeButton(QWidget *parent) : QWidget(parent)
checked = false;
QFont font;
font.setFamily("Helvetica");
#ifdef WIN32
font.setPointSize(8);
#else
font.setPointSize(10);
#endif
font.setWeight(QFont::Black);
setFont(font);
}

View File

@@ -222,7 +222,7 @@ GcSplitterHandle::GcSplitterHandle(QString title, GcSplitterItem *widget, Qt::Or
titleLayout->setSpacing(2);
titleLabel = new GcLabel(title, this);
titleLabel->setXOff(1);
titleLabel->setXOff(0);
#ifdef Q_OS_MAC
int shade = 178;
@@ -245,13 +245,17 @@ GcSplitterHandle::GcSplitterHandle(QString title, GcSplitterItem *widget, Qt::Or
QFont font;
#ifdef Q_OS_MAC
titleLabel->setFixedHeight(16);
titleLabel->setYOff(2);
titleLabel->setYOff(1);
font.setFamily("Lucida Grande");
font.setPointSize(11);
#else
titleLabel->setYOff(2);
titleLabel->setYOff(1);
font.setFamily("Helvetica");
#ifdef WIN32
font.setPointSize(8);
#else
font.setPointSize(10);
#endif
#endif
font.setWeight(QFont::Black);
titleLabel->setFont(font);
@@ -268,6 +272,7 @@ GcSplitterHandle::GcSplitterHandle(QString title, GcSplitterItem *widget, Qt::Or
#endif
titleToolbar->setIconSize(QSize(8,8));
titleToolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
titleToolbar->setAutoFillBackground(false);
titleLayout->addWidget(titleToolbar);