Skip to content

Commit

Permalink
Update to QgsMessageBar stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Nov 7, 2012
1 parent 6c695d5 commit 87af12f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/qgsmessagebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,20 @@ void QgsMessageBar::pushWidget( QWidget *widget, int level )
if ( level >= 2 )
{
stylesheet = "QgsMessageBar { background-color: #d65253; border: 1px solid #9b3d3d; } "
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: white; } ";
"QLabel { color: white; } ";
}
else if ( level == 1 )
{
stylesheet = "QgsMessageBar { background-color: #ffc800; border: 1px solid #e0aa00; } "
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: black; } ";
"QLabel { color: black; } ";
}
else if ( level <= 0 )
{
stylesheet = "QgsMessageBar { background-color: #e7f5fe; border: 1px solid #b9cfe4; } "
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: #2554a1; } ";
"QLabel { color: #2554a1; } ";
}
stylesheet += "QLabel#mMsgTitle { font-weight: bold; } QLabel#mItemCount { font-style: italic; }";
stylesheet += "QLabel#mMsgTitle { font-weight: bold; } "
"QLabel#mItemCount { font-style: italic; }";
pushWidget( widget, stylesheet );
}

Expand Down

0 comments on commit 87af12f

Please sign in to comment.