From 489f5b2ae811fd16925a3521a9400f99d1fa1927 Mon Sep 17 00:00:00 2001 From: doitux Date: Thu, 6 Sep 2007 22:32:15 +0000 Subject: [PATCH] font fixes --- src/gui/qt/mainwindow.ui | 21 ++++++++++------- src/gui/qt/mainwindow/mainwindowimpl.cpp | 30 ++++++++++++------------ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/src/gui/qt/mainwindow.ui b/src/gui/qt/mainwindow.ui index b78cc222..bba2f848 100644 --- a/src/gui/qt/mainwindow.ui +++ b/src/gui/qt/mainwindow.ui @@ -2164,26 +2164,29 @@ - - + + + + + - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing - - + + + + + - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing - - - diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 543f7a0c..91f3f26a 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -420,30 +420,30 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent) for (i=0; isetStyleSheet("QLabel { "+ font2String +" font-size: 10px; color: #F0F0F0; }"); - cashLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 10px; color: #F0F0F0; }"); + cashTopLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 10px; font-weight: bold; color: #F0F0F0; }"); + cashLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 10px; font-weight: bold; color: #F0F0F0; }"); } - spinBox_set->setStyleSheet("QSpinBox { "+ font2String +" font-size: 10px; background-color: #1D3B00; color: #F0F0F0; }"); + spinBox_set->setStyleSheet("QSpinBox { "+ font2String +" font-size: 10px; font-weight: bold; background-color: #1D3B00; color: #F0F0F0; }"); for (i=0; isetStyleSheet("QLabel { "+ font2String +" font-size: 12px; color: #F0F0F0; }"); + setLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 12px; font-weight: bold; color: #F0F0F0; }"); } for (i=0; isetStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #F0F0F0; }"); + playerNameLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #F0F0F0; }"); } - label_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - label_Total->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - textLabel_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - textLabel_Pot->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - label_handNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - label_gameNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - textLabel_handNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); - textLabel_gameNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; color: #669900; }"); + label_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + label_Total->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + textLabel_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + textLabel_Pot->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + label_handNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + label_gameNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + label_handNumberValue->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); + label_gameNumberValue->setStyleSheet("QLabel { "+ font2String +" font-size: 13px; font-weight: bold; color: #669900; }"); textLabel_handLabel->setStyleSheet("QLabel { "+ font2String +" font-size: 17px; font-weight: bold; color: #669900; }"); @@ -1306,8 +1306,8 @@ void mainWindowImpl::refreshGameLabels(int gameState) { } } - textLabel_handNumber->setText(QString::number(mySession->getCurrentGame()->getCurrentHand()->getMyID(),10)); - textLabel_gameNumber->setText(QString::number(mySession->getCurrentGame()->getMyGameID(),10)); + label_handNumberValue->setText(QString::number(mySession->getCurrentGame()->getCurrentHand()->getMyID(),10)); + label_gameNumberValue->setText(QString::number(mySession->getCurrentGame()->getMyGameID(),10)); } void mainWindowImpl::refreshAll() {