X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/2e6dc566dd2f2027203df72302aa75110a31c4ae..093efca22dfd247f06e2a669ad968300e71ef08d:/src/statusbarmessagelabel.cpp diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp index 49d3b2750..8f5f2096e 100644 --- a/src/statusbarmessagelabel.cpp +++ b/src/statusbarmessagelabel.cpp @@ -52,7 +52,7 @@ StatusBarMessageLabel::StatusBarMessageLabel(QWidget* parent) : connect(m_timer, SIGNAL(timeout()), this, SLOT(timerDone())); - m_closeButton = new QPushButton(i18n("Close"), this); + m_closeButton = new QPushButton(i18nc("@action:button", "Close"), this); m_closeButton->hide(); connect(m_closeButton, SIGNAL(clicked()), this, SLOT(closeErrorMessage())); @@ -99,7 +99,6 @@ void StatusBarMessageLabel::setMessage(const QString& text, break; case DolphinStatusBar::Error: - iconName = "dialog-error"; m_timer->start(100); m_state = Illuminate; @@ -140,7 +139,7 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */) // draw background QColor backgroundColor = palette().brush(QPalette::Background).color(); - QColor foregroundColor = KColorScheme(KColorScheme::View).foreground(); + QColor foregroundColor = KColorScheme(QPalette::Active, KColorScheme::View).foreground().color(); if (m_illumination > 0) { // TODO: are there foreground and background colors available for // "error messages"?