set toolbar icon size when starting FreeCAD GUI from Python import

This commit is contained in:
bdieterm
2023-07-08 22:45:38 +02:00
committed by GitHub
parent ee3d62c33b
commit 1a3a170818

View File

@@ -305,6 +305,12 @@ QWidget* setupMainWindow()
mw->setWindowTitle(QString::fromLatin1(App::Application::Config()["ExeName"].c_str()));
}
// set toolbar icon size
ParameterGrp::handle hGrp = Gui::WindowParameter::getDefaultParameter()->GetGroup("General");
int size = hGrp->GetInt("ToolbarIconSize", 0);
if (size >= 16) // must not be lower than this
mw->setIconSize(QSize(size,size));
if (!SoDB::isInitialized()) {
// init the Inventor subsystem
SoDB::init();