-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
i dont think its about the version of ida but in the code from this function you return a double then pass it to qt
file : util/qt/util.py line 47
def get_dpi_scale():
"""
Get a DPI-afflicted value useful for consistent UI scaling.
"""
font = MonospaceFont()
font.setPointSize(normalize_font(120))
fm = QtGui.QFontMetricsF(font)
# xHeight is expected to be 40.0 at normal DPI
return fm.height() / 173.0
then you pass it to qt functions which all params are int here
file : util/qt/waitbox.py line 89
v_layout.setSpacing(int(self._dpi_scale*3))
v_layout.setContentsMargins(
self._dpi_scale*5,
self._dpi_scale,
self._dpi_scale*5,
self._dpi_scale
)
# scale widget dimensions based on DPI
height = self._dpi_scale * 15
self.setMinimumHeight(height)
so if you change that line 65 of code in waitbox.py to that you will fix the issue
self._dpi_scale = int(get_dpi_scale()*5.0)
Ana06
Metadata
Metadata
Assignees
Labels
No labels