Use Icon with Background on Linux

This commit is contained in:
Florian Märkl 2017-12-04 15:58:24 +01:00
parent 9f582b3b82
commit 7c2bd975f9
3 changed files with 3 additions and 4 deletions

View File

@ -196,7 +196,7 @@ unix {
!isEmpty(APPIMAGE){ !isEmpty(APPIMAGE){
# UGLY work around for the logo name in cutter.desktop # UGLY work around for the logo name in cutter.desktop
# Would be better to have a file called cutter.png in the first place # Would be better to have a file called cutter.png in the first place
system(cp img/cutter.svg $$OUT_PWD/cutter.svg) system(cp img/cutter_appicon.svg $$OUT_PWD/cutter.svg)
appimage_root.path = / appimage_root.path = /
appimage_root.files = $$OUT_PWD/cutter.svg $$desktop_file appimage_root.files = $$OUT_PWD/cutter.svg $$desktop_file

View File

@ -37,7 +37,7 @@ int main(int argc, char *argv[])
a.setOrganizationName("cutter"); a.setOrganizationName("cutter");
a.setApplicationName("cutter"); a.setApplicationName("cutter");
a.setApplicationVersion(APP_VERSION); a.setApplicationVersion(APP_VERSION);
a.setWindowIcon(QIcon(":/img/cutter_white_bg.svg")); a.setWindowIcon(QIcon(":/img/cutter_appicon.svg"));
// Set QString codec to UTF-8 // Set QString codec to UTF-8
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));

View File

@ -59,7 +59,6 @@
<file>fonts/Inconsolata-Regular.ttf</file> <file>fonts/Inconsolata-Regular.ttf</file>
<file>img/cutter.svg</file> <file>img/cutter.svg</file>
<file>img/cutter_white.svg</file> <file>img/cutter_white.svg</file>
<file>img/cutter_bg.svg</file> <file>img/cutter_appicon.svg</file>
<file>img/cutter_white_bg.svg</file>
</qresource> </qresource>
</RCC> </RCC>