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:
@@ -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());
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user