Fallback Icon Theme

Albert Astals Cid aacid at kde.org
Sat Mar 3 11:16:17 UTC 2018


El dijous, 1 de març de 2018, a les 23:37:14 CET, Martin Kostolný va escriure:
> 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!

Yeah, i don't think such functionality exists, some people may even say that's 
undesirable since it may cause weird visual "identity" on when mixing icon 
themes.

Once functionality that does exist is forcing the icon theme (in QIcon), 
that's also a bit weird since it overrides the user selection which can be 
seen as a bit aggresive, but if you *really* need the icons it may be a 
possibility.

That's the other question, do you really need the icons or is it just a nice 
to have?

Cheers,
  Albert

> Martin






More information about the Kde-frameworks-devel mailing list