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 7f25d41 commit c26f16b813ba41e7c990498c09f6e58ecf5e2018
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 c26f16b

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