Skip to content
Permalink
Browse files

Better SVG downloading icon

(cherry-picked from 887db6e)
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent 120a884 commit 75fe8ed691c5aa0bceb44eb1ecb32b790cf3f6bd
@@ -647,6 +647,7 @@
<file>themes/default/mIconLayout.svg</file>
<file>themes/default/mActionNewReport.svg</file>
<file>themes/default/mIconReport.svg</file>
<file>themes/default/downloading_svg.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="21.906" height="19.708"><path d="M9.768.25a5.005 5.005 0 0 0-4.98 4.506l-.026-.002a2.826 2.826 0 0 0-2.825 2.725C.958 7.798.25 8.69.25 9.775c0 1.351 1.096 2.418 2.447 2.418H8.834v-2.015a2.148 2.148 0 0 1 .592-1.483c.194-.206.432-.375.687-.49l.03-.014.03-.011c.251-.096.516-.139.774-.139s.524.043.774.139l.031.011.03.014c.254.115.492.284.685.488.175.186.322.406.428.643l.002.002c.118.266.175.559.175.84v2.015H19.21c1.351 0 2.447-1.067 2.447-2.418 0-1.18-.837-2.136-1.949-2.367a2.827 2.827 0 0 0-2.045-1.959 2.828 2.828 0 0 0-3.736-2.982A5 5 0 0 0 9.768.25z" fill="#7c7c7c" stroke="#f7f7f7" stroke-width=".6"/><path d="M11.337 19.388a.863.863 0 0 1-.684 0 1.282 1.282 0 0 1-.3-.208l-2.91-2.974a.971.971 0 0 1-.195-.297.954.954 0 0 1-.068-.362.92.92 0 0 1 .262-.649c.097-.093.197-.162.3-.208a.82.82 0 0 1 .34-.07c.13 0 .246.023.35.07a.988.988 0 0 1 .3.208l1.359 1.378V10.4c0-.126.022-.243.067-.352a.972.972 0 0 1 .495-.51.946.946 0 0 1 .34-.06c.123 0 .236.02.34.06a.943.943 0 0 1 .3.213c.084.089.15.188.199.297.049.109.073.226.073.352v5.875l1.348-1.378a.89.89 0 0 1 1.29 0c.085.086.151.183.2.292a.96.96 0 0 1 .005.719 1.138 1.138 0 0 1-.204.297l-2.91 2.974a.937.937 0 0 1-.297.208z" fill="#7c7c7c" stroke="#f7f7f7" stroke-width=".6"/></svg>
@@ -84,7 +84,21 @@ QgsSvgCache::QgsSvgCache( QObject *parent )
, mMutex( QMutex::Recursive )
{
mMissingSvg = QStringLiteral( "<svg width='10' height='10'><text x='5' y='10' font-size='10' text-anchor='middle'>?</text></svg>" ).toLatin1();
mFetchingSvg = QStringLiteral( "<svg width='10' height='10'><text x='5' y='10' font-size='10' text-anchor='middle'>&#8987;</text></svg>" ).toLatin1();

const QString downloadingSvgPath = QgsApplication::defaultThemePath() + QStringLiteral( "downloading_svg.svg" );
if ( QFile::exists( downloadingSvgPath ) )
{
QFile file( downloadingSvgPath );
if ( file.open( QIODevice::ReadOnly ) )
{
mFetchingSvg = file.readAll();
}
}

if ( mFetchingSvg.isEmpty() )
{
mFetchingSvg = QStringLiteral( "<svg width='10' height='10'><text x='5' y='10' font-size='10' text-anchor='middle'>?</text></svg>" ).toLatin1();
}
}

QgsSvgCache::~QgsSvgCache()
Binary file not shown.
Binary file not shown.

0 comments on commit 75fe8ed

Please sign in to comment.
You can’t perform that action at this time.