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

@ -8,7 +8,7 @@ Button {
id: container
property alias imageSource: image.source
// default button diameter -> default width, readonly
readonly property int defaultDiameter: 65
readonly property int defaultDiameter: StyleSizes.roundButtonDefaultSize
// button diameter -> width
property int diameter: defaultDiameter
// diameter of content image -> width
@ -16,7 +16,7 @@ Button {
background: Rectangle{
border.width: 2
border.width: StyleSizes.roundButtonBorderWidth
border.color: "grey"
color: "white"