diff --git a/share/icons/application/16x16/actions/message-close.png b/share/icons/application/16x16/actions/message-close.png new file mode 100644 index 000000000..4b2f9ca4d Binary files /dev/null and b/share/icons/application/16x16/actions/message-close.png differ diff --git a/share/icons/application/22x22/actions/message-close.png b/share/icons/application/22x22/actions/message-close.png new file mode 100644 index 000000000..4b2f9ca4d Binary files /dev/null and b/share/icons/application/22x22/actions/message-close.png differ diff --git a/share/icons/svg/message-close.svg b/share/icons/svg/message-close.svg new file mode 100644 index 000000000..44b643072 --- /dev/null +++ b/share/icons/svg/message-close.svg @@ -0,0 +1,65 @@ + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/src/gui/KMessageWidget.cpp b/src/gui/KMessageWidget.cpp index a6bfa04bc..b88c3bc12 100644 --- a/src/gui/KMessageWidget.cpp +++ b/src/gui/KMessageWidget.cpp @@ -91,7 +91,7 @@ void KMessageWidgetPrivate::init(KMessageWidget *q_ptr) QAction *closeAction = new QAction(q); closeAction->setText(KMessageWidget::tr("&Close")); closeAction->setToolTip(KMessageWidget::tr("Close message")); - closeAction->setIcon(FilePath::instance()->icon("actions", "dialog-close")); + closeAction->setIcon(FilePath::instance()->icon("actions", "message-close", false)); QObject::connect(closeAction, SIGNAL(triggered(bool)), q, SLOT(animatedHide())); @@ -293,11 +293,7 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type) } // Colors -#ifdef Q_OS_MAC fg = palette().light().color(); -#else - fg = palette().highlightedText().color(); -#endif bg0 = bg1.lighter(110); bg2 = bg1.darker(110); border = darkShade(bg1); @@ -311,6 +307,7 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type) "border-radius: 5px;" "border: 1px solid %4;" "margin: %5px;" + "padding: 5px;" "}" ".QLabel { color: %6; }" ))