Nice memory layer indicator icon, thanks to @nirvn

This commit is contained in:
Nyall Dawson 2018-08-02 19:29:30 +10:00
parent a953587915
commit 93ce435c8a
3 changed files with 3 additions and 1 deletions

View File

@ -698,6 +698,7 @@
<file>themes/default/mActionIdentifyByRectangle.svg</file>
<file>themes/default/mIndicatorEmbedded.svg</file>
<file>themes/default/mIconHistory.svg</file>
<file>themes/default/mIndicatorMemory.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><rect height="7" overflow="visible" rx=".84" width="13" x="1.5" y="4.5" ry=".84" fill="none" stroke="#2c2c2c" stroke-opacity=".706"/><path d="M3.5 3.5v-1M6.5 3.5v-1M9.5 3.5v-1M12.5 3.5v-1M12.5 12.5v1M9.5 12.5v1M6.5 12.5v1M3.5 12.5v1" fill="#2e4e72" fill-rule="evenodd" stroke="#2c2c2c" stroke-linecap="square" stroke-linejoin="bevel" stroke-opacity=".706"/><path style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;shape-padding:0;isolation:auto;mix-blend-mode:normal" d="M13.56 4.945L2.503 5c-.326-.035-.563.089-.502.5v5c-.064.594.396.5.5.5H3V6h11v-.5c0-.178.047-.55-.5-.5z" color="#000" font-weight="400" font-family="sans-serif" white-space="normal" overflow="visible" fill="gray" fill-opacity=".424"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -22,7 +22,7 @@ QgsLayerTreeViewMemoryIndicatorProvider::QgsLayerTreeViewMemoryIndicatorProvider
: QObject( view )
, mLayerTreeView( view )
{
mIcon = QgsApplication::getThemeIcon( QStringLiteral( "/mActionCreateMemory.svg" ) );
mIcon = QgsApplication::getThemeIcon( QStringLiteral( "/mIndicatorMemory.svg" ) );
QgsLayerTree *tree = mLayerTreeView->layerTreeModel()->rootGroup();
onAddedChildren( tree, 0, tree->children().count() - 1 );