cherry-pick #11: Catppuccin icon override infrastructure (224feda4ad)

BitmapFactory.cpp: load icons from kindred-icons/ dir before built-in resources.
This commit is contained in:
forbes
2026-02-13 14:07:27 -06:00
parent 1202d4c277
commit 5456ffb34f
2 changed files with 19 additions and 0 deletions

View File

@@ -63,6 +63,13 @@ BitmapFactoryInst& BitmapFactoryInst::instance()
if (!_pcSingleton) {
_pcSingleton = new BitmapFactoryInst;
std::map<std::string, std::string>::const_iterator it;
// Kindred Create custom icons - highest priority
// These override default FreeCAD icons with Catppuccin Mocha themed versions
_pcSingleton->addPath(
QStringLiteral("%1/kindred-icons").arg(QString::fromStdString(App::Application::getHomePath()))
);
it = App::GetApplication().Config().find("ProgramIcons");
if (it != App::GetApplication().Config().end()) {
QString home = QString::fromStdString(App::Application::getHomePath());

View File

@@ -1618,3 +1618,15 @@ INSTALL(
DESTINATION
${CMAKE_INSTALL_DATADIR}/3Dconnexion
)
# Kindred Create custom icons - Catppuccin Mocha themed overrides
INSTALL(
DIRECTORY
${CMAKE_SOURCE_DIR}/kindred-icons/
DESTINATION
kindred-icons
FILES_MATCHING
PATTERN "*.svg"
PATTERN "*.png"
PATTERN "README.md"
)