Fallback Icon Theme

Martin Kostolný clearmartin at zoho.com
Thu Mar 1 22:37:14 UTC 2018


Hi!

We at Krusader would like to address a rather standard issue of applications - missing icons. And we would like an opinion of you as experts :).

Starter discussion (which led in here) is on Krusader's phabricator: https://phabricator.kde.org/D10352

Krusader is using a lot of icons existing in Breeze or Oxygen themes. But e.g. for Gnome users there are a lot of missing icons. We don't want to add all the non-standard icons to hicolor theme attached to Krusader. Especially since they already exist in Breeze or Oxygen. Instead we would like to specify a fallback theme - e.g. Breeze, so every missing icon from currently set theme would be loaded from the fallback theme (if it is installed of course).

I believe this functionality is currently not supported by KIconLoader but I may be wrong. I have only found a possibility to add an additional path to icons (extraSearchPaths) which is probably not what we want.

To give an example, I'd expect something like this to be a possibility for a programmer:

KIconLoader *iconLoader = KIconLoader::global();
QStringList fallbackThemes;
fallbackThemes << "breeze-dark";
fallbackThemes << "oxygen";
iconLoader->setFallbackThemes(fallbackThemes);

Any guidance or another opinion is appreciated. Thanks!
Martin





More information about the Kde-frameworks-devel mailing list