mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Prettification of the map view.
Just some prettifications, better defaults, etc. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
86021b24d9
commit
7509360173
3 changed files with 10 additions and 7 deletions
|
@ -217,22 +217,22 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
|
|||
|
||||
switch (type) {
|
||||
case Positive:
|
||||
bg1 = QColor(Qt::green);
|
||||
bg1 = QColor("#72D594"); // nice green
|
||||
fg = QColor(Qt::white);
|
||||
break;
|
||||
|
||||
case Information:
|
||||
bg1 = QColor(Qt::blue);
|
||||
bg1 = QColor("#41A8E3"); // nice blue
|
||||
fg = QColor(Qt::black);
|
||||
break;
|
||||
|
||||
case Warning:
|
||||
bg1 = QColor(Qt::yellow);
|
||||
bg1 = QColor("#72D594"); // nice yellow
|
||||
fg = QColor(Qt::black);
|
||||
break;
|
||||
|
||||
case Error:
|
||||
bg1 = QColor(Qt::red);
|
||||
bg1 = QColor("#E4B7B7"); // nice red.
|
||||
fg = QColor(Qt::black);
|
||||
break;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
|
|||
// Colors
|
||||
bg0 = bg1.lighter(110);
|
||||
bg2 = bg1.darker(110);
|
||||
border = QColor(Qt::black);
|
||||
border = bg2.darker(110);
|
||||
d->content->setStyleSheet(
|
||||
QString(".QFrame {"
|
||||
"background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue