1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Make label readable on windows system.

Works properly on Win8.1 i686
This commit is contained in:
Flynn 2014-07-04 13:18:36 -07:00
parent 47f1802446
commit 404be4b635

View File

@ -55,11 +55,11 @@ EditableLabelWidget::EditableLabelWidget(QWidget* parent) :
lineEdit->setMinimumHeight(label->fontMetrics().lineSpacing() + LINE_SPACING_OFFSET);
// Set dark background for >windows
QColor toxDarkAsMySoul(28,28,28);
QPalette darkPal;
darkPal.setColor(QPalette::Window, toxDarkAsMySoul);
darkPal.setColor(QPalette::Base, toxDarkAsMySoul);
lineEdit->setPalette(darkPal);
//QColor toxDarkAsMySoul(28,28,28);
//QPalette darkPal;
//darkPal.setColor(QPalette::Window, toxDarkAsMySoul);
//darkPal.setColor(QPalette::Base, toxDarkAsMySoul);
//lineEdit->setPalette(darkPal);
connect(lineEdit, &EscLineEdit::editingFinished, this, &EditableLabelWidget::onLabelChangeSubmited);
connect(lineEdit, &EscLineEdit::escPressed, this, &EditableLabelWidget::onLabelChangeCancelled);