Give me some days, I don't have the external monitor close to my actual home so I need a few days to check it out.
[BUG?] Cropped icons
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [BUG?] Cropped icons
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
-
- Posts: 1
- Joined: Thu Jan 02, 2020 11:38 pm
Re: [BUG?] Cropped icons
Hi @triplus,
I can confirm that this is still an issue. I just installed 0.19-19107: the icons look cropped on my external monitor, and they look fine on my main monitor. This is on a Macbook Pro 13" with retina display.
I can confirm that this is still an issue. I just installed 0.19-19107: the icons look cropped on my external monitor, and they look fine on my main monitor. This is on a Macbook Pro 13" with retina display.
Re: [BUG?] Cropped icons
I also had the time to check it out this Christmas and the bug is still present...
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Re: [BUG?] Cropped icons
This is an upstream Qt issue. A while back we have enabled AA_UseHighDpiPixmaps attribute in FreeCAD to get nice icons on HiDPI displays. In addition there is an icon theme (FreeCAD-default) embedded and used in FreeCAD by default. There needs to be a third ingredient and that is a dual display workspace, where each display has a different scale factor set. If all this conditions are true, the mentioned issue can be observed. Until the issue gets fixed in Qt, and as we won't be turning AA_UseHighDpiPixmaps attribute to off by default, to mitigate the issue i have created a PR, basically i left only one icon (screenshot command) in the embedded demo icon theme pack. No icons from an icon theme will get used on toolbars, hence the issue should be resolved.
P.S. For people using the IconThemes module (not legacy), the issue will still persist in such scenario. Until the issue gets fixed in Qt there is some manual control avaliable:
Run when FreeCAD is located on HiDPI display:
Run when FreeCAD is located on regular display:
P.S. Or just run the last code snippet once and give up a bit more crisp icons on HiDPI display.
P.S. For people using the IconThemes module (not legacy), the issue will still persist in such scenario. Until the issue gets fixed in Qt there is some manual control avaliable:
Run when FreeCAD is located on HiDPI display:
Code: Select all
from PySide import QtGui, QtCore
QtGui.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
Code: Select all
from PySide import QtGui, QtCore
QtGui.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, False)