https://bugs.kde.org/show_bug.cgi?id=434881

            Bug ID: 434881
           Summary: breeze icons don't appear
           Product: kirigami gallery
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: federand...@gmail.com
  Target Milestone: ---

Created attachment 137026
  --> https://bugs.kde.org/attachment.cgi?id=137026&action=edit
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
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to