|
YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
|
Utility for loading icons with theme support and fallbacks. More...
#include <frontend/include/helpers/icon_loader.hpp>
Static Public Member Functions | |
| static QIcon | themed (std::initializer_list< const char * > names, QStyle::StandardPixmap fallback) |
| Load a themed icon using multiple candidate names. | |
Utility for loading icons with theme support and fallbacks.
This helper tries to obtain icons from the current desktop theme using a list of possible icon names (in priority order). If none of the themed icons are available, it falls back to a Qt standard pixmap from the current application style.
On Android builds, themed-icon lookup is skipped by design and the fallback icon is returned immediately.
Definition at line 20 of file icon_loader.hpp.
|
static |
Load a themed icon using multiple candidate names.
The function iterates over names and returns the first non-null icon found via QIcon::fromTheme. If all candidates fail (or if themed icons are disabled on the platform), a standard style icon specified by fallback is returned.
| names | Candidate icon names in theme lookup order. |
| fallback | Qt standard pixmap to use when no themed icon is found. |
Definition at line 3 of file icon_loader.cpp.