Skip to content

Commit 87af12f

Browse files
committed
Update to QgsMessageBar stylesheet
1 parent 6c695d5 commit 87af12f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/gui/qgsmessagebar.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,20 @@ void QgsMessageBar::pushWidget( QWidget *widget, int level )
193193
if ( level >= 2 )
194194
{
195195
stylesheet = "QgsMessageBar { background-color: #d65253; border: 1px solid #9b3d3d; } "
196-
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: white; } ";
196+
"QLabel { color: white; } ";
197197
}
198198
else if ( level == 1 )
199199
{
200200
stylesheet = "QgsMessageBar { background-color: #ffc800; border: 1px solid #e0aa00; } "
201-
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: black; } ";
201+
"QLabel { color: black; } ";
202202
}
203203
else if ( level <= 0 )
204204
{
205205
stylesheet = "QgsMessageBar { background-color: #e7f5fe; border: 1px solid #b9cfe4; } "
206-
"QLabel#mMsgTitle, QLabel#mMsgText, QLabel#mItemCount { color: #2554a1; } ";
206+
"QLabel { color: #2554a1; } ";
207207
}
208-
stylesheet += "QLabel#mMsgTitle { font-weight: bold; } QLabel#mItemCount { font-style: italic; }";
208+
stylesheet += "QLabel#mMsgTitle { font-weight: bold; } "
209+
"QLabel#mItemCount { font-style: italic; }";
209210
pushWidget( widget, stylesheet );
210211
}
211212

0 commit comments

Comments
 (0)