mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 09:21:21 -05:00
Fix message widget style on OS X
This commit is contained in:
parent
6e2254c13d
commit
84f2520924
@ -98,6 +98,12 @@ void KMessageWidgetPrivate::init(KMessageWidget *q_ptr)
|
|||||||
closeButton = new QToolButton(content);
|
closeButton = new QToolButton(content);
|
||||||
closeButton->setAutoRaise(true);
|
closeButton->setAutoRaise(true);
|
||||||
closeButton->setDefaultAction(closeAction);
|
closeButton->setDefaultAction(closeAction);
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
closeButton->setStyleSheet("QToolButton { background: transparent;"
|
||||||
|
"border-radius: 2px; padding: 3px; }"
|
||||||
|
"QToolButton::hover, QToolButton::focus {"
|
||||||
|
"border: 1px solid rgb(90, 200, 250); }");
|
||||||
|
#endif
|
||||||
|
|
||||||
q->setMessageType(KMessageWidget::Information);
|
q->setMessageType(KMessageWidget::Information);
|
||||||
}
|
}
|
||||||
@ -287,7 +293,11 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
fg = palette().light().color();
|
||||||
|
#else
|
||||||
fg = palette().highlightedText().color();
|
fg = palette().highlightedText().color();
|
||||||
|
#endif
|
||||||
bg0 = bg1.lighter(110);
|
bg0 = bg1.lighter(110);
|
||||||
bg2 = bg1.darker(110);
|
bg2 = bg1.darker(110);
|
||||||
border = darkShade(bg1);
|
border = darkShade(bg1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user