Scale all QML elements according to the current display size
This commit is contained in:
parent
9e7a55fc20
commit
bcdf3d94f2
15 changed files with 278 additions and 109 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue