Commit 1c111a82 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Install app icon

Currently we rely on the 'skanlite' icon being shipped by breeze-icons,
which causes trouble when using Skanlite outside of Plasma or from
Flatpak.

Install the app icon to the hicolor theme to make sure it's always
available.

The icon file is copied from breeze-icons

BUG: 441740
parent 99df5906
<svg width="48" xmlns="http://www.w3.org/2000/svg" height="48" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="a" y1="543.8" y2="503.8" gradientUnits="userSpaceOnUse" x2="0" gradientTransform="matrix(1.125 0 0 .85-51.07 79.57)">
<stop stop-color="#c6cdd1"/>
<stop offset="1" stop-color="#e0e5e7"/>
</linearGradient>
<linearGradient id="b" y1="507.8" x1="390.57" y2="535.8" x2="418.57" gradientUnits="userSpaceOnUse">
<stop/>
<stop offset="1" stop-opacity="0"/>
</linearGradient>
<linearGradient id="c" y1="507.8" y2="503.8" x2="0" gradientUnits="userSpaceOnUse">
<stop stop-color="#2f3943"/>
<stop offset="1" stop-color="#4d5662"/>
</linearGradient>
<linearGradient xlink:href="#a" id="d" y1="46" x1="43" y2="37" x2="8" gradientUnits="userSpaceOnUse"/>
<linearGradient id="e" y1="509.8" y2="537.8" x2="0" gradientUnits="userSpaceOnUse">
<stop stop-color="#2e5d89"/>
<stop offset="1" stop-color="#1b92f4"/>
</linearGradient>
<linearGradient id="f" xlink:href="#c" x1="3" gradientUnits="userSpaceOnUse" x2="-1" gradientTransform="matrix(0 1-1 0 422.57 539.8)"/>
<linearGradient id="g" y1="-521.8" y2="-518.8" x2="0" gradientUnits="userSpaceOnUse">
<stop stop-color="#84cbfe"/>
<stop offset="1" stop-color="#84cbfe" stop-opacity="0"/>
</linearGradient>
<linearGradient xlink:href="#g" id="h" y1="-521.8" y2="-518.8" x2="0" gradientUnits="userSpaceOnUse" gradientTransform="translate(0 1044.6)"/>
<linearGradient id="i" y1="505.8" y2="509.8" x2="0" gradientUnits="userSpaceOnUse">
<stop stop-color="#18222a"/>
<stop offset="1" stop-color="#566069"/>
</linearGradient>
<linearGradient xlink:href="#a" id="j" y1="509.8" y2="537.8" x2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.0625 0 0 1.07143-25.536-37.414)"/>
</defs>
<g transform="translate(-384.57-499.8)">
<rect width="36" x="390.57" y="507.8" fill="url(#a)" rx="0" height="34"/>
<rect width="34" x="391.57" y="508.8" fill="url(#j)" height="30" stroke-linejoin="bevel" stroke-linecap="round" stroke-width="6.2"/>
<path fill="url(#d)" d="m6 40v1.949c0 1.136.915 2.051 2.051 2.051h31.898c1.136 0 2.051-.915 2.051-2.051v-1.949z" transform="translate(384.57 499.8)"/>
<rect width="32" x="392.57" y="509.8" fill="url(#e)" height="28" stroke-linejoin="bevel" stroke-linecap="round" stroke-width="6.2"/>
<path fill="url(#c)" d="m390.57 507.8v-1.949c0-1.136.915-2.051 2.051-2.051h31.898c1.136 0 2.051.915 2.051 2.051v1.949z"/>
<g stroke-linejoin="bevel" stroke-linecap="round" stroke-width="6.2">
<rect width="32" x="392.57" y="521.8" fill="#84cbfe" height="1"/>
<rect width="32" x="392.57" opacity=".2" y="522.8" fill="url(#h)" height="3"/>
<rect width="32" x="392.57" opacity=".2" y="-521.8" fill="url(#g)" height="3" transform="scale(1-1)"/>
<rect width="17" x="393.57" y="515.8" fill="#eff0f1" height="21"/>
</g>
<path opacity=".2" fill="url(#b)" fill-rule="evenodd" d="m390.57 507.8l32 32h4v-32z"/>
<g stroke-linejoin="round" stroke-width="2">
<path fill="url(#f)" d="m422.57 539.8h-28v1c0 1.108.892 2 2 2h24c1.108 0 2-.892 2-2z"/>
<circle fill="#11d116" cx="-541.3" cy="-420.07" r=".5" stroke-linecap="round" transform="matrix(0-1-1 0 0 0)"/>
</g>
<rect width="36" x="390.57" y="505.8" fill="url(#i)" height="2" stroke-linejoin="bevel" stroke-linecap="round" stroke-width="6.2"/>
</g>
</svg>
......@@ -29,6 +29,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(GenerateExportHeader)
include(ECMQtDeclareLoggingCategory)
include(ECMInstallIcons)
ecm_setup_version(
${SKANLITE_VERSION_STRING}
......@@ -57,4 +58,6 @@ add_subdirectory(doc)
add_subdirectory(autotests)
add_subdirectory(tests)
ecm_install_icons(ICONS 48-apps-org.kde.skanlite.svg DESTINATION ${KDE_INSTALL_ICONDIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
[Desktop Entry]
Type=Application
Exec=skanlite
Icon=skanlite
Icon=org.kde.skanlite
X-DocPath=skanlite/index.html
Terminal=false
Name=Skanlite
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment