Skip to content
Permalink
Browse files
Add an icon for annotation layers
  • Loading branch information
nyalldawson committed Sep 6, 2021
1 parent 7b11b53 commit 0896d5910b840b636d1dbf1b392025e2f8f547bd
Showing with 5 additions and 1 deletion.
  1. +1 −0 images/images.qrc
  2. +1 −0 images/themes/default/mIconAnnotationLayer.svg
  3. +3 −1 src/core/qgsiconutils.cpp
@@ -930,6 +930,7 @@
<file>themes/default/mIconGps.svg</file>
<file>themes/default/mActionNewGpx.svg</file>
<file>themes/default/mActionAddGpsLayer.svg</file>
<file>themes/default/mIconAnnotationLayer.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
@@ -0,0 +1 @@
<svg height="16" width="16" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="b"><stop offset="0" stop-color="#f9f9f9"/><stop offset="1" stop-color="#cacaca"/></linearGradient><linearGradient id="a"><stop offset="0" stop-color="#cacaca"/><stop offset="1" stop-color="#dcdcdc" stop-opacity="0"/></linearGradient><linearGradient xlink:href="#b" id="c" x1="9.0050049" y1="5.9966655" x2="13.007229" y2="12.992775" gradientUnits="userSpaceOnUse"/><linearGradient xlink:href="#b" id="d" gradientUnits="userSpaceOnUse" x1="9.0050049" y1="5.9966655" x2="13.007229" y2="12.992775"/></defs><path d="m 2.5,13.5 5,-11 h 6" fill="none" stroke="#888a85" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.4999999 2.5c0 .552285-.4477149 1-.9999999 1-.552285 0-1-.447715-1-1 0-.552285.447715-1 1-1 .552285 0 .9999999.447715.9999999 1zM14.5 2.5c0 .552285-.447715 1-1 1-.552285 0-1-.447715-1-1 0-.552285.447715-1 1-1 .552285 0 1 .447715 1 1zM3.5 13.5c0 .552285-.4477153 1-1 1-.5522847 0-1-.447715-1-1 0-.552285.4477153-1 1-1 .5522847 0 1 .447715 1 1z" fill="#eeeeec" fill-rule="evenodd" stroke="#888a85" stroke-linecap="round" stroke-linejoin="round"/><g color="#000" aria-label="A" style="-inkscape-font-specification:'ESRI Default Marker'" font-size="10.1515px" font-family="ESRI Default Marker" letter-spacing="0" word-spacing="0" fill="#888a85" stroke-width="2" stroke-linejoin="round" stroke-miterlimit="3.8" paint-order="stroke fill markers"><path style="-inkscape-font-specification:'Liberation Sans Bold';-inkscape-stroke:none" d="m 9.7871094,4.9980469 a 1.0001,1.0001 0 0 0 -0.9394531,0.65625 L 6.3007812,12.638672 a 1.0001,1.0001 0 0 0 0.9394532,1.34375 H 8.703125 a 1.0001,1.0001 0 0 0 0.9433594,-0.671875 l 0.3867186,-1.113281 h 1.240235 l 0.384765,1.113281 a 1.0001,1.0001 0 0 0 0.945313,0.671875 h 1.447265 a 1.0001,1.0001 0 0 0 0.939453,-1.341797 L 12.453125,5.65625 A 1.0001,1.0001 0 0 0 11.513672,4.9980469 Z" transform="scale(0.99944421,1.0005561)"/><path style="-inkscape-font-specification:'Liberation Sans Bold';-inkscape-stroke:none" d="M 12.603455,12.981975 11.983857,11.197531 H 9.3220625 L 8.7024641,12.981975 H 7.2402119 L 9.7880004,5.9978617 h 1.7249616 l 2.537875,6.9841133 z m -1.952974,-5.9084905 -0.02974,0.1090493 q -0.04957,0.1784444 -0.118963,0.4064566 -0.0694,0.2280122 -0.8525676,2.5081346 H 11.656709 L 10.967716,8.0896258 10.754574,7.4155028 Z" transform="scale(0.99944421,1.0005561)"/></g><g style="line-height:1.25;-inkscape-font-specification:'ESRI Default Marker'"><path d="m 12.603455,12.981975 -0.602693,-1.97288 -2.6786995,-0.0042 -0.6195984,1.977081 H 7.2402119 L 9.7880004,5.9978617 h 1.7249616 l 2.537875,6.9841133 z m -1.952974,-5.9084905 -1.1101541,2.921916 2.3598571,0.013942 z" style="-inkscape-font-specification:'Liberation Sans Bold'" font-weight="700" font-family="Liberation Sans" fill="url(#d)" aria-label="A" transform="scale(0.99944421,1.0005561)" font-size="10.1515px" letter-spacing="0" word-spacing="0" stroke-width="2" stroke-linejoin="round" stroke-miterlimit="3.8" paint-order="stroke fill markers"/></g><g fill="#797c75" color="#000" paint-order="stroke fill markers"><path style="-inkscape-stroke:none" d="M 2.8066406,1.2460937 A 0.54998998,0.54998998 0 0 0 2.2988281,1.6425781 L 2.0625,2.4511719 1.1796875,2.4902344 A 0.54998998,0.54998998 0 0 0 0.89453125,3.4941406 L 1.5917969,3.96875 1.3554687,4.8203125 A 0.54998998,0.54998998 0 0 0 2.2226563,5.4023437 L 2.8886719,4.8867187 3.6269531,5.3730469 A 0.54998998,0.54998998 0 0 0 4.4472656,4.7285156 L 4.1621094,3.9355469 4.8535156,3.3847656 A 0.54998998,0.54998998 0 0 0 4.4941406,2.40625 L 3.6523438,2.4316406 3.3417969,1.6035156 A 0.54998998,0.54998998 0 0 0 2.8066406,1.2460937 Z m 0.054687,2.0078126 A 0.54998998,0.54998998 0 0 0 3.1347656,3.4375 0.54998998,0.54998998 0 0 0 3.0449219,3.7558594 0.54998998,0.54998998 0 0 0 2.7695313,3.765625 0.54998998,0.54998998 0 0 0 2.6660156,3.40625 0.54998998,0.54998998 0 0 0 2.8613281,3.2539063 Z" transform="matrix(1.0728704,0,0,1.1095143,-0.27152316,-0.30574419)"/><path style="-inkscape-stroke:none" d="M 3.9294249,4.9149493 2.8631207,4.2102499 1.8856182,4.9674319 2.226321,3.7355523 1.2041332,3.0398742 2.4810034,2.9832302 2.8267591,1.7960954 3.2752054,2.9929672 4.511082,2.9549556 3.5113668,3.751307 Z" transform="matrix(1.0728704,0,0,1.1095143,-0.27152316,-0.30574419)"/></g><path d="M 3.9442405,5.1474623 2.8002343,4.3655883 1.7515008,5.2056925 2.1170307,3.8389045 1.0203557,3.0670397 2.390272,3.0041924 2.761223,1.6870493 3.2423478,3.0149957 4.5682832,2.9728213 3.4957183,3.8563846 Z" fill="#eeeeec" paint-order="stroke fill markers"/></svg>
@@ -160,8 +160,10 @@ QIcon QgsIconUtils::iconForLayerType( QgsMapLayerType type )
case QgsMapLayerType::VectorLayer:
return QgsIconUtils::iconGeometryCollection();

case QgsMapLayerType::PluginLayer:
case QgsMapLayerType::AnnotationLayer:
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconAnnotationLayer.svg" ) );

case QgsMapLayerType::PluginLayer:
break;
}
return QIcon();

0 comments on commit 0896d59

Please sign in to comment.