Stylesheets: Toolbar icon size resets on each program start in Light and Dark themes
Is there an existing issue for this?
- [x] I have searched the existing issues
Problem description
Edit -> Preferences -> General -> General -> Application -> Size of Toolbar icons I change the "Size of toolbar icons" option from "24" (default) to "16" (my preference) and hit "Apply" and "Ok". The Toolbar icons get the user-set size ("16") for the duration of current session, i.e. until FreeCAD (1.0.2) has been shut down. Upon program restart, the Toolbar icons are being shown with their default size ("24"). HOWEVER, navigating to the associated setting shows the size has been saved correctly (16). In order to get the Toolbar icons to show with the preferred size, I need to set any other size, hit "Apply", set my preferred size again and hit "Apply" again. This behaviour is consistent between multiple restarts and has "survived" several reinstalls of FreeCAD. Notably, it is present "out of the box", i.e. with no add-ons installed nor any other preferences set (other than selecting the "Dark" theme upon initial startup).
Full version info
OS: KDE Flatpak runtime (X-Cinnamon/cinnamon/xcb)
Architecture: x86_64
Version: 1.0.2.39319 (Git) Flatpak
Build type: Release
Branch: (HEAD detached at 256fc7e)
Hash: 256fc7eff3379911ab5daf88e10182c509aa8052
Python 3.12.10, Qt 6.9.0, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/
Subproject(s) affected?
None
Anything else?
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
New observations:
- The reported behaviour appears when either "FreeCAD Light" or "FreeCAD Dark" themes are active.
- If I choose the "FreeCAD Classic" theme the icons show correctly, i.e. according to the value set by the user.
- Reverting from "Classic" to any of the themes in (1) reintroduces the problem.
I hope this helps narrowing down the source of the bug.
Did you try with weekly version?
No, I'm trying to stick to the version in my distribution repo so as to not mess things up. Is this a known issue for this version? Search only returned similar (but not identical) issues regarding TreeView icon sizes, but nothing about Toolbar icons.
I cannot reproduce.
I also have this issue when using when using the theme FreeCAD Dark. My toolbar size would reset to the default size when restarting the application. I switched the theme to FreeCAD Classic and that seems to work without issue.
Here is my info:
OS: KDE Flatpak runtime (KDE/plasma/xcb) Architecture: x86_64 Version: 1.0.2.39319 (Git) Flatpak Build type: Release Branch: (HEAD detached at 256fc7e) Hash: 256fc7eff3379911ab5daf88e10182c509aa8052 Python 3.12.10, Qt 6.9.0, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1 Locale: English/United States (en_US) Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/
Hi! This issue hasn’t seen activity in a while. If it’s still relevant, please update to the latest FreeCAD weekly build download here to see if the problem is resolved.
If the issue persists, let us know by adding a comment with any updates or details. Otherwise, we’ll close this issue automatically in 14 days to keep our backlog tidy. Feel free to comment anytime to keep it open. Closed issues can always be reopened. Thanks for helping improve FreeCAD!
Access additional FreeCAD resources:
- Forum: https://forum.freecad.org
- Blog: https://blog.freecad.org
- Wiki: https://wiki.freecad.org
Still relevant
OS: Windows 11 build 26200
Architecture: x86_64
Version: 1.1.0dev.20251104 (Git shallow)
Build date: 2025/11/04 19:07:44
Build type: Release
Branch: main
Hash: af014a1bb44264d749ba9522917f0d1ac76c4bbf
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: Polish/Poland (pl_PL)
Navigation Style/Orbit Style/Rotation Mode: Blender/Rounded Arcball/Window center
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Light/
Logical DPI/Physical DPI/Pixel Ratio: 96/81.5973/1
The reported behaviour appears when either "FreeCAD Light" or "FreeCAD Dark" themes are active.
Updated ticket title to reflect this
@maxwxyz UI blocker ?
Is there any update on this? I have the same issue: Freecad V 1.0.2 using the Dark Theme
I installed freecad over flatpack.
The value "32" in user.cfg is correct however the icon size resets to the small one after restarting freecad. The displayed size in freecad is the Medium 24px one not the Large 32px size as it should be.
<FCParameters>
<FCParamGroup Name="Root">
<FCParamGroup Name="BaseApp">
<FCParamGroup Name="LogLevels">
<FCInt Name="Default" Value="2"/>
</FCParamGroup>
<FCParamGroup Name="Preferences">
<FCParamGroup Name="General">
<FCText Name="FileOpenSavePath">/media/m2ssd/Freecad</FCText>
<FCParamGroup Name="HiddenPreferencePacks"/>
<FCText Name="AutoloadModule">PartDesignWorkbench</FCText>
<FCText Name="BackgroundAutoloadModules">PartDesignWorkbench</FCText>
<FCText Name="Language">English</FCText>
<FCBool Name="SubstituteDecimalSeparator" Value="0"/>
<FCInt Name="UseLocaleFormatting" Value="0"/>
<FCBool Name="EnableCursorBlinking" Value="1"/>
<FCBool Name="ShowSplasher" Value="1"/>
<FCInt Name="ToolbarIconSize" Value="32"/>
Hi! This issue hasn’t seen activity in a while. We automatically check each issue after 190 days without activity to keep the backlog tidy. If it’s still relevant, please update to the latest FreeCAD weekly build download here to see if the issue is already resolved.
If the issue is still relevant, let us know by adding a comment. Otherwise, we’ll close this issue automatically in 60 days.
Feel free to comment anytime to keep it open. Closed issues can always be reopened. Thanks for helping improve FreeCAD!
Access additional FreeCAD resources:
- Forum: https://forum.freecad.org
- Blog: https://blog.freecad.org
- Wiki: https://wiki.freecad.org
I can't reproduce it now, but it might be OS-dependent. Later, I can also check on Windows 11.
OS: Windows 10 build 19045
Architecture: x86_64
Version: 26.3.0dev.20260825 (Git shallow)
Build date: 2026/08/25 17:50:34
Build type: Release
Branch: (HEAD detached at 964fce2ed)
Hash: 964fce2edc9a7e1905c2fd3fcd6e7be90afc8375
Python 3.11.14, Qt 6.8.3, Coin 4.0.10 (bundled), Pivy 0.6.11 (bundled), Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.2, OCC 7.8.1
Locale: Polish/Poland (pl_PL) [ OS: Polish/Poland (pl_PL) ]
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Light/
QPA/File dialog/Color dialog: windows/via Win32/via Qt
Navigation Style/Orbit Style/Rotation Mode: Blender/Rounded Arcball/Window center
Logical DPI/Physical DPI/Pixel Ratio: 96/90.0633/1
OpenGL version/vendor/renderer: 4.6.0 NVIDIA 474.82/NVIDIA Corporation/Quadro K4000/PCIe/SSE2
I can't reproduce
OS: Windows 11 build 26200
Architecture: x86_64
Version: 26.3.0dev.20260825 (Git shallow)
Build date: 2026/08/25 17:50:34
Build type: Release
Branch: (HEAD detached at 964fce2ed)
Hash: 964fce2edc9a7e1905c2fd3fcd6e7be90afc8375
Python 3.14.6, Qt 6.11.1, Coin 4.0.10 (bundled), Pivy 0.6.11 (bundled), Vtk 9.6.2, boost 1_91, Eigen3 5.0.1, PySide 6.11.1
shiboken 6.11.1, SMESH 7.7.1.0, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.5, OCC 8.0.0.p1-4f95ecaa
Locale: Turkish/Türkiye (tr_TR) [ OS: Turkish/Türkiye (tr_TR) ]
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Dark/
QPA/File dialog/Color dialog: windows/via Win32/via Qt
Navigation Style/Orbit Style/Rotation Mode: Blender/Rounded Arcball/Window center
Logical DPI/Physical DPI/Pixel Ratio: 96/81.5973/1
OpenGL version/vendor/renderer: 4.6.0 NVIDIA 597.06/NVIDIA Corporation/Quadro RTX 4000/PCIe/SSE2
Installed mods:
* Curves workbench 0.6.70
Seems fixed. No more issues on linux mint and the flatpack of freecad.
@maxwxyz