| Summary: | breeze icons don't appear on android | ||
|---|---|---|---|
| Product: | [Applications] kirigami gallery | Reporter: | Ludovic Jozeau <unifai> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 7.x | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | content of the generated apk | ||
SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.21.3 KDE Frameworks Version: 5.80 Qt Version: 5.15.2 |
Created attachment 137026 [details] content of the generated apk SUMMARY By default, the app didn't show any icons (home, go-next, view-list-icons, ...), when I looked into the genereted apk (and not forgot to `make install` before `create-apk`) I saw that the path to the icons (`assets:qml/org/kde/kirigami.2/icons`) was different from what QIcon::themeSearchPaths() was returning: ``` 03-23 21:45:40.977 30330 30349 D libkirigami2gallery_arm64-v8a.so: themeSearchPaths.size: 2 03-23 21:45:40.977 30330 30349 D libkirigami2gallery_arm64-v8a.so: ":/android_rcc_bundle/qml/org/kde/kirigami.2/." 03-23 21:45:40.977 30330 30349 D libkirigami2gallery_arm64-v8a.so: ":/icons" ``` in fact there were no icons nor index.theme in android_rcc_bundle they were placed next to it (see the screenshot) A workaround that worked for me was to add the correct path to the themeSearchPaths: ```cpp #ifdef Q_OS_ANDROID QIcon::setThemeSearchPaths(QIcon::themeSearchPaths() << QStringLiteral("assets:/qml/org/kde/kirigami.2")); #endif ```