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
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue