gui: add application icon and desktop file
|
|
@ -104,6 +104,17 @@ if (WITH_GUI)
|
|||
src/gui/user_config.cpp
|
||||
src/gui/user_interface.cpp
|
||||
)
|
||||
install(FILES src/resources/gui/de.syping.dtranslatebot.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
|
||||
install(FILES src/resources/gui/dtranslatebot-16.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-20.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/20x20/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-24.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/24x24/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-32.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-48.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-64.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-96.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-128.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-256.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME de.syping.dtranslatebot.png)
|
||||
install(FILES src/resources/gui/dtranslatebot-512.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps" RENAME de.syping.dtranslatebot.png)
|
||||
else()
|
||||
list(APPEND DTRANSLATEBOT_SOURCES
|
||||
src/cli/main.cpp
|
||||
|
|
@ -123,7 +134,7 @@ if (WIN32)
|
|||
endif()
|
||||
|
||||
# dtranslatebot systemd Service
|
||||
if (UNIX AND NOT APPLE)
|
||||
if (LINUX AND NOT WITH_GUI)
|
||||
option(WITH_SYSTEMD "Build with systemd Support" OFF)
|
||||
if (WITH_SYSTEMD)
|
||||
find_program(SYSTEMD_ESCAPE_EXECUTABLE NAMES systemd-escape)
|
||||
|
|
|
|||
8
src/resources/gui/de.syping.dtranslatebot.desktop
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=dtranslatebot
|
||||
Comment=Discord Translation Bot
|
||||
Categories=GTK;Network;
|
||||
TryExec=dtranslatebot
|
||||
Exec=dtranslatebot
|
||||
Icon=de.syping.dtranslatebot
|
||||
BIN
src/resources/gui/dtranslatebot-128.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
src/resources/gui/dtranslatebot-16.png
Normal file
|
After Width: | Height: | Size: 600 B |
BIN
src/resources/gui/dtranslatebot-20.png
Normal file
|
After Width: | Height: | Size: 721 B |
BIN
src/resources/gui/dtranslatebot-24.png
Normal file
|
After Width: | Height: | Size: 870 B |
BIN
src/resources/gui/dtranslatebot-256.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
src/resources/gui/dtranslatebot-32.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/resources/gui/dtranslatebot-48.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/resources/gui/dtranslatebot-512.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
src/resources/gui/dtranslatebot-64.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/resources/gui/dtranslatebot-96.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
71
src/resources/gui/dtranslatebot.svg
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
sodipodi:docname="dtranslatebot.svg"
|
||||
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="0.7861328"
|
||||
inkscape:cx="78.231057"
|
||||
inkscape:cy="-41.341616"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1014"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1" />
|
||||
<defs
|
||||
id="defs1">
|
||||
<linearGradient
|
||||
id="linearGradient20">
|
||||
<stop
|
||||
style="stop-color:#000080;stop-opacity:1;"
|
||||
offset="0.94611311"
|
||||
id="stop20" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0.94611311"
|
||||
id="stop22" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient20"
|
||||
id="radialGradient22"
|
||||
cx="256"
|
||||
cy="256"
|
||||
fx="256"
|
||||
fy="256"
|
||||
r="224"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<g
|
||||
id="logo"
|
||||
transform="matrix(1.1229117,0,0,1.1228898,-31.468219,-31.452673)">
|
||||
<path
|
||||
id="circle"
|
||||
style="fill:url(#radialGradient22);stroke-width:0"
|
||||
d="m 253.125,28.041016 c -15.35336,0.183844 -30.68508,1.946351 -45.68736,5.213783 -30.26921,6.579427 -59.15471,19.425636 -84.31543,37.494645 -20.95045,15.015602 -39.312716,33.621076 -54.063616,54.758366 -17.561802,25.13633 -29.966691,53.85314 -36.218198,83.87286 -6.295782,30.03232 -6.419054,61.33699 -0.373507,91.41984 6.17529,30.89884 18.853274,60.47781 36.986938,86.24852 17.216213,24.54353 39.344413,45.61657 64.688563,61.6294 25.7259,16.29178 54.75238,27.3316 84.79959,32.26842 31.59188,5.22374 64.28222,3.67825 95.23644,-4.52078 30.90455,-8.12619 60.04222,-22.87279 84.9082,-42.94263 25.29027,-20.35968 46.13299,-46.20486 60.67497,-75.23315 13.68091,-27.22216 21.80457,-57.21446 23.74888,-87.61821 1.92572,-29.75853 -2.07243,-59.88275 -11.69667,-88.10746 C 461.64562,152.60151 445.16002,124.84503 423.73836,101.6083 400.137,75.91837 370.53762,55.781274 337.97136,43.272198 312.20301,33.319601 284.6091,28.141087 256.98757,28.017622 c -1.28756,-0.02071 -2.57512,0.0087 -3.86257,0.02339 z" />
|
||||
<path
|
||||
id="d"
|
||||
style="font-size:192px;font-family:'Adwaita Sans';-inkscape-font-specification:'Adwaita Sans, @opsz=32,wght=700';font-variation-settings:'opsz' 32, 'wght' 700;fill:#ffffff;stroke-width:1.14927"
|
||||
d="m 179.1018,336.31021 c -13.82895,0 -27.65793,0 -41.48689,0 0,-9.30315 0,-18.60631 0,-27.90938 17.02938,-0.32305 34.13569,0.77924 51.09786,-0.84847 17.1334,-1.7898 31.26378,-15.69524 34.2736,-32.50267 3.689,-19.31765 3.52028,-42.04701 -9.67113,-57.91979 -11.11034,-12.93634 -29.10616,-14.00724 -44.96598,-13.46975 -10.4962,0 -20.9924,0 -31.48859,0 0,-9.30307 0,-18.60614 0,-27.90966 19.1108,0.35057 38.29845,-0.8557 57.3427,0.95765 26.13828,2.91913 50.309,20.75944 58.81381,45.95761 8.09733,24.11757 7.55586,51.82351 -3.6057,74.89906 -11.82417,24.68919 -39.10851,38.41271 -65.74416,38.65925 -1.52099,0.0573 -3.04326,0.0849 -4.56552,0.0849 z M 155.61057,175.75049 c 0,53.51997 0,107.03986 0,160.55972 -11.06282,0 -22.12609,0 -33.18935,0 0,-53.51986 0,-107.03975 0,-160.55972 11.06326,0 22.12653,0 33.18935,0 z m 103.47826,28.38577 c 0,-9.48266 0,-18.96577 0,-28.44844 43.49832,0 86.99665,0 130.49498,0 0,9.48267 0,18.96578 0,28.44844 -16.19963,0 -32.39926,0 -48.5989,0 0,44.03705 0,88.07409 0,132.1112 -11.06311,0 -22.12627,0 -33.18953,0 0,-44.03711 0,-88.07415 0,-132.1112 -16.23547,0 -32.47095,0 -48.70655,0 z"
|
||||
inkscape:label="dt" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.1 KiB |