Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bccdf2e

Browse filesBrowse files
authored
Merge pull request #14509 from timhoffm/fix-large-icons
Fix too large icon spacing in Qt5 on non-HiDPI screens
2 parents fac4ad5 + df183df commit bccdf2e
Copy full SHA for bccdf2e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_qt5.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def _init_toolbar(self):
709709
# Esthetic adjustments - we need to set these explicitly in PyQt5
710710
# otherwise the layout looks different - but we don't want to set it if
711711
# not using HiDPI icons otherwise they look worse than before.
712-
if is_pyqt5():
712+
if is_pyqt5() and self.canvas._dpi_ratio > 1:
713713
self.setIconSize(QtCore.QSize(24, 24))
714714
self.layout().setSpacing(12)
715715

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.