Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(capslockindicator): Tooltip color was changed. Tooltip translatio…
Browse files Browse the repository at this point in the history
…n was added
  • Loading branch information
Diadlo committed Jun 7, 2016
1 parent af497a9 commit bbe158c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/capslockindicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit bbe158c

Please sign in to comment.