Scale all QML elements according to the current display size

This commit is contained in:
Jan-Martin Raemer 2022-06-03 22:07:50 +02:00
parent 9e7a55fc20
commit bcdf3d94f2
15 changed files with 278 additions and 109 deletions

View file

@ -14,11 +14,11 @@ ItemDelegate{
property alias imageSource: contentImage.source
padding: 5
padding: StylePaddings.defaultPadding
background: Rectangle{
id: background
implicitWidth: 150
implicitWidth: StyleSizes.navigationDelegateDefaultSize
implicitHeight: implicitWidth
radius: container.isCircleDelegate ? height/2 : 0
color: "blue"
@ -26,7 +26,7 @@ ItemDelegate{
id: contentImage
source: "qrc:/default_image"
anchors.fill: parent
anchors.margins: 5
anchors.margins: StyleMargins.tinyMargin
fillMode: Image.PreserveAspectCrop
layer.enabled: true