Skip to content
Permalink
Browse files

Be theme-friendly, enforce borderless close button in message bar

  • Loading branch information
nirvn committed Dec 27, 2018
1 parent fd0fba7 commit 711eaa206894cc1e42a536303c3a0c6a4fa04f1d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmessagebar.cpp
@@ -83,8 +83,8 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
mCloseBtn->setToolTip( tr( "Close" ) );
mCloseBtn->setMinimumWidth( 40 );
mCloseBtn->setStyleSheet(
"QToolButton { background-color: rgba(0, 0, 0, 0); }"
"QToolButton::menu-button { background-color: rgba(0, 0, 0, 0); }" );
"QToolButton { border:none; background-color: rgba(0, 0, 0, 0); }"
"QToolButton::menu-button { border:none; background-color: rgba(0, 0, 0, 0); }" );
mCloseBtn->setCursor( Qt::PointingHandCursor );
mCloseBtn->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconClose.svg" ) ) );

0 comments on commit 711eaa2

Please sign in to comment.
You can’t perform that action at this time.