diff --git a/Murmur.qbs b/Murmur.qbs index 13e729cb..f26b6c8e 100644 --- a/Murmur.qbs +++ b/Murmur.qbs @@ -39,6 +39,21 @@ QtApplication { "resources/data.qrc" ] + Group { + files: ["resources/com.github.harmony-development.Murmur.svg"] + qbs.install: qbs.targetOS.contains("linux") + qbs.installDir: "share/icons/hicolor/scalable/apps" + } + + Group { + files: ["com.github.harmony-development.Murmur.desktop"] + qbs.install: qbs.targetOS.contains("linux") + qbs.installDir: "share/applications" + } + + qbs.install: qbs.targetOS.contains("linux") + qbs.installDir: "bin" + Group { name: "Translation files" files: ["po/*.ts"] diff --git a/com.github.harmony-development.Murmur.desktop b/com.github.harmony-development.Murmur.desktop new file mode 100644 index 00000000..e5dfb425 --- /dev/null +++ b/com.github.harmony-development.Murmur.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Murmur +Exec=Murmur +Comment=Harmony client +GenericName=Chat Application +Icon=com.github.harmony-development.Murmur.svg diff --git a/main.cpp b/main.cpp index b80f63ad..2674bd72 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -37,6 +38,12 @@ int main(int argc, char *argv[]) murmurTranslator.load("Murmur_" + QLocale::system().name(), ":/po/"); app->installTranslator(&murmurTranslator); + QApplication::setWindowIcon(QIcon::fromTheme(QString("com.github.harmony-development.Murmur"))); + QApplication::setDesktopFileName("com.github.harmony-development.Murmur.desktop"); + QApplication::setStyle("Breeze"); + QIcon::setThemeName("breeze"); + QQuickStyle::setStyle("org.kde.desktop"); + QQmlApplicationEngine engine; const QUrl url(QStringLiteral("qrc:/main.qml")); QObject::connect( diff --git a/resources/LoginRoute.qml b/resources/LoginRoute.qml index 6ed86218..9ed50e3c 100644 --- a/resources/LoginRoute.qml +++ b/resources/LoginRoute.qml @@ -22,7 +22,7 @@ Kirigami.PageRoute { anchors.centerIn: parent Image { - source: "qrc:/img/com.github.Harmony.Murmur.svg" + source: "qrc:/img/com.github.harmony-development.Murmur.svg" sourceSize { width: Layout.preferredWidth height: Layout.preferredWidth diff --git a/resources/com.github.Harmony.Murmur.svg b/resources/com.github.harmony-development.Murmur.svg similarity index 100% rename from resources/com.github.Harmony.Murmur.svg rename to resources/com.github.harmony-development.Murmur.svg diff --git a/resources/data.qrc b/resources/data.qrc index b84f9ea3..c6391799 100644 --- a/resources/data.qrc +++ b/resources/data.qrc @@ -20,6 +20,6 @@ qmldir - com.github.Harmony.Murmur.svg + com.github.harmony-development.Murmur.svg