forked from MrBesen/lolautoaccept
added icon
This commit is contained in:
parent
09a50682f9
commit
2b9010334c
|
@ -25,5 +25,4 @@ Makefile
|
|||
|
||||
AppDir/
|
||||
*.AppImage
|
||||
*.svg
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@ Type=Application
|
|||
Name=LoLAutoAccept
|
||||
Exec=lolautoaccept
|
||||
Icon=lolautoaccept
|
||||
Categories=Audio;
|
||||
Categories=Utility;
|
||||
|
|
|
@ -97,18 +97,19 @@ QMAKE_CLEAN += $$TRANSLATIONSQM
|
|||
# build AppImage
|
||||
unix {
|
||||
$$PWD/linuxdeploy-x86_64.AppImage.commands = wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod u+x linuxdeploy-x86_64.AppImage
|
||||
$$MOC_DIR/lolautoaccept.svg.commands = touch $$MOC_DIR/lolautoaccept.svg
|
||||
|
||||
appimg.depends = $$PWD/linuxdeploy-x86_64.AppImage $${TARGET} $$MOC_DIR/lolautoaccept.svg
|
||||
$$PWD/lolautoaccept.png.commands = inkscape -z -e lolautoaccept.png -w 512 -h 512 lolautoaccept.svg
|
||||
|
||||
appimg.depends = $$PWD/linuxdeploy-x86_64.AppImage $${TARGET} $$PWD/lolautoaccept.png
|
||||
appimg.commands = rm -rf AppDir ; \
|
||||
mkdir -p AppDir/ts AppDir/imgs; \
|
||||
cp $$PWD/ts/*.qm ./AppDir/ts ; \
|
||||
cp $$PWD/imgs/*.png ./AppDir/imgs; \
|
||||
./linuxdeploy-x86_64.AppImage --appdir=AppDir -e lolautoaccept -i $$MOC_DIR/lolautoaccept.svg -d lolautoaccept.desktop --output appimage
|
||||
./linuxdeploy-x86_64.AppImage --appdir=AppDir -e lolautoaccept -i lolautoaccept.png -d lolautoaccept.desktop --output appimage
|
||||
|
||||
QMAKE_EXTRA_TARGETS += appimg $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/lolautoaccept.svg
|
||||
QMAKE_EXTRA_TARGETS += appimg $$PWD/linuxdeploy-x86_64.AppImage $$PWD/lolautoaccept.png
|
||||
|
||||
QMAKE_CLEAN += $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/lolautoaccept.svg
|
||||
QMAKE_CLEAN += $$PWD/linuxdeploy-x86_64.AppImage $$PWD/lolautoaccept.png
|
||||
}
|
||||
|
||||
# Default rules for deployment.
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="1024" width="1024">
|
||||
<defs>
|
||||
<clipPath id="text-circle-cutoff">
|
||||
<circle cx="512" cy="512" r="494" fill="none" />
|
||||
</clipPath>
|
||||
<clipPath id="circles-text-cutoff">
|
||||
<rect width="1024" height="386" y="786" />
|
||||
<rect width="448" height="1024" y="0" />
|
||||
<rect width="448" height="1024" y="0" x="576" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
<!-- background - the blue of the accept button -->
|
||||
<circle cx="512" cy="512" r="510" fill="#005e84" />
|
||||
|
||||
<!-- edge -->
|
||||
<circle cx="512" cy="512" r="508" fill="none" stroke-width="4" stroke="black" />
|
||||
<circle cx="512" cy="512" r="500" fill="none" stroke-width="4" stroke="black" />
|
||||
|
||||
<!-- A A -->
|
||||
<text x="48" y="786" fill="black" font-size="768px" clip-path="url(#text-circle-cutoff)" font-family="monospace">
|
||||
AA
|
||||
</text>
|
||||
<!-- Pointer -->
|
||||
<polygon points="512,786 354,226 500,226 488,48 536,48 524,226 670,226" />
|
||||
|
||||
<!-- click effect -->
|
||||
<ellipse rx="128" ry="32" cx="512" cy="786" fill="none" stroke="black" stroke-width="6" clip-path="url(#circles-text-cutoff)" />
|
||||
<ellipse rx="232" ry="58" cx="512" cy="786" fill="none" stroke="black" stroke-width="4" clip-path="url(#circles-text-cutoff)" />
|
||||
<ellipse rx="332" ry="83" cx="512" cy="786" fill="none" stroke="black" stroke-width="2" clip-path="url(#circles-text-cutoff)" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue