Skip to content

Commit 04edcb7

Browse files
authored
Merge pull request #8305 from signedav/action-icon
Different mAction icon, when action activated
2 parents e797f7e + 37d0fb4 commit 04edcb7

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

images/images.qrc

+1
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@
724724
<file>themes/default/mIconFolderLink.svg</file>
725725
<file>themes/default/mIconFolderOpen.svg</file>
726726
<file>themes/default/mIconFolderProject.svg</file>
727+
<file>themes/default/mActionActive.svg</file>
727728
</qresource>
728729
<qresource prefix="/images/tips">
729730
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
+1
Loading

src/app/qgisapp.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -6837,6 +6837,8 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )
68376837

68386838
if ( !qgsAction.icon().isNull() )
68396839
mActionFeatureAction->setIcon( qgsAction.icon() );
6840+
else
6841+
mActionFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionActive.svg" ) ) );
68406842
}
68416843
else
68426844
{
@@ -6853,6 +6855,8 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )
68536855

68546856
if ( !mapLayerAction->icon().isNull() )
68556857
mActionFeatureAction->setIcon( mapLayerAction->icon() );
6858+
else
6859+
mActionFeatureAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionActive.svg" ) ) );
68566860
}
68576861
else
68586862
{

0 commit comments

Comments
 (0)