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

fix(capslockindicator): Tooltip color was changed. Tooltip translation was added

This commit is contained in:
Diadlo 2016-05-26 12:03:38 +03:00
parent af497a9efd
commit bbe158c7d9
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -13,14 +13,14 @@ CapsLockIndicator::CapsLockIndicator(QWidget *parent) : QToolButton(parent) {
setIconSize(iconSize);
setCursor(Qt::ArrowCursor);
move(inputSize.width() - inputSize.height(), 0);
setStyleSheet("border: none; padding: 0;");
setToolTip("CAPS-LOCK ENABLED");
setStyleSheet("border: none; padding: 0; color: white");
setToolTip(tr("CAPS-LOCK ENABLED"));
}
void CapsLockIndicator::show() {
QToolButton::show();
QString style = QString("padding: -3px %1px -3px -6px").arg(iconSize().width() - 3);
QString style = QString("padding: -3px %1px -3px -6px; color: white").arg(iconSize().width() - 3);
parentWidget()->setStyleSheet(style);
}