Good news, everyone. I just pushed my WIP about automatic shell icons in QT5 and GTK2 in my Lazarus repo in github. Tomorrow I will do the GTK3 version.
For GTK3 and QT5, the code is still in work in progress and therefore the patch is not yet ready for the following reasons:
- The procedure LoadMimeIconNames is quite slow and I want to try to improve it. [fixed]
- Some parts of the code are duplicated between QT5 and GTK2. This is my first time modifying Lazarus, so I don't know how to go about making things better (especially QT5 wants Widestring and GTK2 AnsiString).
- There is no recognition of special folders and therefore generic icons are used for them
Edit: Completed for GTK3 (TShellListview doesn't work, I believe for issues on the TListview) -
https://github.com/salvadorbs/lazarus/commit/e92a9e40b52a8cfaacc0a1658f480ef8faf1e6a3 Duplicate code problem got worse (see GTK3), but I will make the patch anyway. Suggestions are welcome