This commit is contained in:
Unrud 2021-06-06 00:46:14 +02:00
parent 5be09594df
commit 592f40006f
12 changed files with 18 additions and 2512 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="128" height="128" version="1.1" viewBox="0 0 33.867 33.867" xmlns="http://www.w3.org/2000/svg">
<path d="m31.75 22.754v1.0583c0 1.1726-0.94403 2.1167-2.1167 2.1167h-25.4c-1.1726 0-2.1167-0.94403-2.1167-2.1167v-1.0583z" fill="#cacccc"/>
<rect x="2.1167" y="8.9958" width="29.633" height="15.875" rx="2.1167" ry="2.1167" fill="#eaeced"/>
<rect x="29.898" y="15.346" width=".52917" height="3.175" rx=".26458" ry=".26458" fill="#cacccc"/>
<rect x="5.2917" y="10.054" width="23.283" height="13.758" fill="#5e5c64"/>
<rect x="3.175" y="13.758" width="1.0583" height="6.35" rx=".52917" ry=".5919" fill="#cacccc"/>
<path d="m9.0777 25.71c-0.00214 0.23918 0.060837 0.44999 0.19063 0.57978l4.5382 4.5377 0.32814 0.32815c0.38896 0.3767 0.90809 0.58989 1.4506 0.59169h7.1107c1.1579-2.3e-5 2.0965-0.93865 2.0965-2.0965v-1.059h-10l-3.9818-3.9402h-1.7328z" fill="#dea560"/>
<circle cx="15.316" cy="16.593" r="3.175" fill="#62a0ea" fill-opacity=".5"/>
<path d="m15.316 15.469c-0.62555 5e-6 -1.1328 0.52585-1.1327 0.97927v9.1845c-6.2e-5 0.14239-0.11548 0.2578-0.25786 0.25786-0.0683-2.46e-4 -0.13371-0.02756-0.1819-0.07596l-5.3e-4 5.29e-4 -2.529-2.529c-0.32061-0.32062-1.1278-0.25715-1.665 0.28009-0.53724 0.53725-0.60122 1.3449-0.2806 1.6655l4.5382 4.5377 0.32814 0.32815c0.38896 0.3767 0.90809 0.58989 1.4506 0.59169h7.1107c1.1579-2.4e-5 2.0965-0.93865 2.0965-2.0965v-5.9392c4e-6 -0.45341-0.5072-0.97926-1.1327-0.97927-0.62555 1.3e-5 -1.1328 0.52585-1.1327 0.97927v0.50385c-5.8e-5 0.14239-0.11547 0.25781-0.25786 0.25787-0.14239-5.9e-5 -0.25781-0.11548-0.25786-0.25787v-1.603c2e-6 -0.45341-0.50721-0.97926-1.1327-0.97927-0.62554 1e-5 -1.1328 0.52586-1.1327 0.97927v0.78651c-5.9e-5 0.14239-0.11548 0.25781-0.25787 0.25786-0.14239-5.8e-5 -0.25781-0.11548-0.25786-0.25786v-1.4159c4e-6 -0.45341-0.50721-0.97926-1.1327-0.97927-0.62554 6e-6 -1.1328 0.52586-1.1327 0.97927v1.4159c-5.9e-5 0.14239-0.11547 0.25781-0.25786 0.25786-0.14239-5.8e-5 -0.25781-0.11548-0.25786-0.25786v-5.8927c5e-6 -0.45341-0.5072-0.97926-1.1327-0.97927z" fill="#ffbe6f"/>
</svg>

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -44,8 +44,9 @@ modules:
- install -Dm0755 -t /app/bin desktop/remote-touchpad-wait-on-error
- install -Dm0644 -t /app/share/metainfo desktop/com.github.unrud.RemoteTouchpad.appdata.xml
- install -Dm0644 -t /app/share/applications desktop/com.github.unrud.RemoteTouchpad.desktop
- install -Dm0644 -t /app/share/icons/hicolor/scalable/apps desktop/com.github.unrud.RemoteTouchpad.svg
- |
for s in 64 128 256 512; do
install -Dm0644 desktop/remote-touchpad_${s}.png \
/app/share/icons/hicolor/${s}x${s}/apps/com.github.unrud.RemoteTouchpad.png || exit 1
for res in 16 32 48 64 128 256 512; do
rsvg-convert --height "${res}" --keep-aspect-ratio --format png --output com.github.unrud.RemoteTouchpad.png desktop/com.github.unrud.RemoteTouchpad.svg || exit 1
install -Dm0644 -t "/app/share/icons/hicolor/${res}x${res}/apps" com.github.unrud.RemoteTouchpad.png || exit 1
done

Binary file not shown.

View file

@ -44,16 +44,10 @@ parts:
stage-packages:
- libxt6
- libxtst6
override-pull: |
snapcraftctl pull
# WORKAROUND: Point icon directly to high resolution version otherwise snapcraft automatically chooses lowest resolution
sed -e 's|Icon=com.github.unrud.RemoteTouchpad|Icon=/usr/share/icons/hicolor/512x512/apps/com.github.unrud.RemoteTouchpad.png|' -i desktop/com.github.unrud.RemoteTouchpad.desktop
override-build: |
snapcraftctl build
install -Dm0755 -t "${SNAPCRAFT_PART_INSTALL}/usr/bin" desktop/remote-touchpad-wait-on-error
install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/metainfo" desktop/com.github.unrud.RemoteTouchpad.appdata.xml
install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/applications" desktop/com.github.unrud.RemoteTouchpad.desktop
for s in 64 128 256 512; do
install -Dm0644 desktop/remote-touchpad_${s}.png "${SNAPCRAFT_PART_INSTALL}/usr/share/icons/hicolor/${s}x${s}/apps/com.github.unrud.RemoteTouchpad.png"
done
install -Dm0644 -t "${SNAPCRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps" desktop/com.github.unrud.RemoteTouchpad.svg
parse-info: [usr/share/metainfo/com.github.unrud.RemoteTouchpad.appdata.xml]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Before After
Before After