Skip to content

Commit c26f16b

Browse files
committedDec 28, 2018
Be theme-friendly, enforce borderless close button in message bar
1 parent 7f25d41 commit c26f16b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsmessagebar.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
8383
mCloseBtn->setToolTip( tr( "Close" ) );
8484
mCloseBtn->setMinimumWidth( 40 );
8585
mCloseBtn->setStyleSheet(
86-
"QToolButton { background-color: rgba(0, 0, 0, 0); }"
87-
"QToolButton::menu-button { background-color: rgba(0, 0, 0, 0); }" );
86+
"QToolButton { border:none; background-color: rgba(0, 0, 0, 0); }"
87+
"QToolButton::menu-button { border:none; background-color: rgba(0, 0, 0, 0); }" );
8888
mCloseBtn->setCursor( Qt::PointingHandCursor );
8989
mCloseBtn->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconClose.svg" ) ) );
9090

0 commit comments

Comments
 (0)
Please sign in to comment.