Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Make QML resource popup arrow scale properly
Carsten Hartenfelsffb849f7152b
diff --git a/qmlmodules/components/qml/ResourcePopup.qml b/qmlmodules/components/qml/ResourcePopup.qmlindex 1f1739353c..cadab7008d 100644--- a/qmlmodules/components/qml/ResourcePopup.qml+++ b/qmlmodules/components/qml/ResourcePopup.qml@@ -156,6 +156,10 @@ Button {x: Math.round(resourceCmb.mirrored ? resourceCmb.padding : resourceCmb.width - width - resourceCmb.padding);y: Math.round(resourceCmb.topPadding + (resourceCmb.availableHeight - height) / 2);source: resourceCmb.palette.button.hslLightness < 0.5? "qrc:///light_groupOpened.svg": "qrc:///dark_groupOpened.svg";+ // Setting the source size is required for proper high-DPI scaling.+ // Qt automatically multiplies the size with the display scaling.+ sourceSize.width: 12;+ sourceSize.height: 12;width: 12;height: 12;clip: true;