New icons for QPT files and Python files in the browser

Python icon thanks to @pkinglinz
This commit is contained in:
Nyall Dawson 2017-12-16 16:07:16 +10:00
parent 252f0802b1
commit a33946b0ed
4 changed files with 6 additions and 2 deletions

View File

@ -615,6 +615,8 @@
<file>themes/default/cursors/mZoomOut.svg</file>
<file>themes/default/cursors/mIdentify.svg</file>
<file>themes/default/mIconQgsProjectFile.svg</file>
<file>themes/default/mIconPythonFile.svg</file>
<file>themes/default/mIconQptFile.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" width="16" height="16" viewBox="0 0 4.233 4.233"><defs><linearGradient gradientTransform="matrix(.03553 0 0 .03572 -1.463 -2.268)" id="b" gradientUnits="userSpaceOnUse" x1="89.137" x2="147.777" y1="111.921" y2="168.101"><stop offset="0" stop-color="#ffe052"/><stop offset="1" stop-color="#ffc331"/></linearGradient><linearGradient gradientTransform="matrix(.03553 0 0 .03572 -1.463 -2.268)" id="a" gradientUnits="userSpaceOnUse" x1="55.549" x2="110.149" y1="77.07" y2="131.853"><stop offset="0" stop-color="#387eb8"/><stop offset="1" stop-color="#366994"/></linearGradient></defs><path d="M2.081.142c-.996 0-1.016.434-1.016.434l-.002.218h1.054l.005.264H.794s-.66.03-.66 1.04.556.975.556.975h.332v-.469s-.018-.56.548-.56h.942s.53.01.53-.514V.665s.08-.523-.96-.523zm-.523.241c.095 0 .17.08.17.175a.171.171 0 1 1-.342 0c0-.095.077-.172.171-.172z" overflow="visible" fill="url(#a)"/><path d="M2.11 4.065c.996 0 1.065-.434 1.065-.434v-.45h-1.06v-.275H3.42s.637.004.637-.797c0-1.01-.556-.975-.556-.975H3.17v.469s.018.56-.547.56h-.943s-.53-.01-.53.514v.865s-.08.523.96.523zm.524-.302a.171.171 0 0 1-.171-.172.171.171 0 1 1 .342 0 .171.171 0 0 1-.171.172z" overflow="visible" fill="url(#b)"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" enable-background="new"><defs><filter id="c" color-interpolation-filters="sRGB"><feBlend in2="BackgroundImage" mode="darken"/></filter><filter id="b" color-interpolation-filters="sRGB"><feFlood flood-opacity=".5" result="flood"/><feComposite in="flood" in2="SourceGraphic" operator="in" result="composite1"/><feOffset dx="1.5" dy="1.5" result="offset"/><feComposite in="SourceGraphic" in2="offset" result="composite2"/></filter><clipPath id="a"><path d="M38.25 304.546h170.393v132.287H38.25z"/></clipPath></defs><path style="isolation:auto;mix-blend-mode:normal" color="#000" overflow="visible" fill="#fff" stroke="#5d5daa" enable-background="accumulate" d="M.52.52h14.959v14.959H.52z"/><g transform="translate(-.27 -16.066) scale(.06785)" clip-path="url(#a)" enable-background="new" filter="url(#b)" stroke="#b0b0de"><path d="M40.398 303.183l158.731.873 3.745 131.626-158.237 1.99z" fill="#e8e8f6" stroke="none"/><path d="M42.373 307.067l154.39 127.028" fill="none" stroke-width="15.172"/><path d="M67.68 331.256l-29.024 27.018" fill="none" stroke-width="10"/><path d="M157.584 406.513l44.747-52.896" fill="none" stroke-width="5"/><path d="M100.005 358.53l45.636-54.08" fill="none" stroke-width="10"/><path d="M150.008 297.416l56.568 45.962 19.193 103.036m-107.581-70.711l-76.951 26.37" fill="none" stroke-width="5"/></g><path overflow="visible" d="M1952.477 762.533h18.392v16.877h-18.392z" transform="matrix(.09771 0 0 .10634 -178.682 -78.984)" fill="#e5e5f4" stroke="#9292d2" stroke-width="2" filter="url(#c)"/><path overflow="visible" d="M1934.064 824.291h29.963v61.414h-29.963z" transform="translate(-153.61 -62.182) scale(.08495)" fill="#fff" stroke="#b0b0de" stroke-width="2.78" filter="url(#c)"/><path fill="#b0b0de" d="M2 2h9v1H2z"/><path fill="none" stroke="#9292d2" stroke-width=".946" stroke-linecap="square" d="M2.471 4.505h11.024v8.99H2.471z"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -139,7 +139,7 @@ QgsQptDataItem::QgsQptDataItem( QgsDataItem *parent, const QString &name, const
: QgsDataItem( QgsDataItem::Custom, parent, name, path )
{
setState( QgsDataItem::Populated ); // no children
setIconName( QStringLiteral( ":/images/icons/qgis-icon-16x16.png" ) );
setIconName( QStringLiteral( "/mIconQptFile.svg" ) );
setToolTip( QDir::toNativeSeparators( path ) );
}
@ -182,7 +182,7 @@ QgsPyDataItem::QgsPyDataItem( QgsDataItem *parent, const QString &name, const QS
: QgsDataItem( QgsDataItem::Custom, parent, name, path )
{
setState( QgsDataItem::Populated ); // no children
setIconName( QStringLiteral( ":/images/icons/qgis-icon-16x16.png" ) );
setIconName( QStringLiteral( "/mIconPythonFile.svg" ) );
setToolTip( QDir::toNativeSeparators( path ) );
}