Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added QgsMessageBar::SUCCESS #1736

Merged
merged 2 commits into from Dec 15, 2014
Merged

Conversation

mbernasocchi
Copy link
Member

Added a new level of messages in QgsMessageBar for succesful messages. they are colored with the bootstrap success green (background #dff0d8; border #8e998a) reusing the mActionCheckQgisVersion.png icon.
@NathanW2 can you have a look? thanks

@@ -111,6 +111,9 @@ void QgsMessageBarItem::writeContent()
case QgsMessageBar::WARNING:
msgIcon = QString( "/mIconWarn.png" );
break;
case QgsMessageBar::SUCCESS:
msgIcon = QString( "/mActionCheckQgisVersion.png" );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you copy the icon and make a new one called mIconSuccess. Reusing is good but it would be nice to be able to change the success icon without changing the other.

@NathanW2
Copy link
Member

Looks good to me. If you just update that icon you can merge it.

@mbernasocchi
Copy link
Member Author

@NathanW2 done. thanks for merging, I've no write rights

3nids added a commit that referenced this pull request Dec 15, 2014
@3nids 3nids merged commit 86527b6 into qgis:master Dec 15, 2014
@dakcarto
Copy link
Member

@mbernasocchi Thanks for this! Positive message colors have been missing for a while, but it wasn't so obvious until you posted your PR. 😄

@mbernasocchi mbernasocchi deleted the QgsMessageBar-SUCCESS branch December 15, 2014 16:34
@mbernasocchi
Copy link
Member Author

@dakcarto no prob :) another thing that is missing is a LayerSavedAs message (when saved as is successful), I have a branch but somehow I cant get it to make the emitted signal arrive to python (although I can connect to it and emit it from python). would you have a look at this branch: https://github.com/mbernasocchi/QGIS/tree/emit-saved-as
Thanks a lot

@dakcarto
Copy link
Member

@mbernasocchi I believe you also need to connect the app's signal to the interface's, to re-emit it from the interface.

Here is where other signal-to-signal connections are located in the interface's implementation file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants