lock/resources: fix scaling
This commit is contained in:
parent
dc3dd3eccc
commit
d2f849dd75
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ GridLayout {
|
||||||
required property real value
|
required property real value
|
||||||
required property color colour
|
required property color colour
|
||||||
|
|
||||||
readonly property int thickness: Appearance.padding.normal
|
readonly property int thickness: width < 200 ? Appearance.padding.smaller : Appearance.padding.normal
|
||||||
readonly property real arcRadius: (width - Appearance.padding.large * 3 - thickness) / 2
|
readonly property real arcRadius: (width - Appearance.padding.large * 3 - thickness) / 2
|
||||||
readonly property real vValue: value || 1 / 360
|
readonly property real vValue: value || 1 / 360
|
||||||
readonly property real gapAngle: ((Appearance.spacing.small + thickness) / (arcRadius || 1)) * (180 / Math.PI)
|
readonly property real gapAngle: ((Appearance.spacing.small + thickness) / (arcRadius || 1)) * (180 / Math.PI)
|
||||||
|
|
@ -127,7 +127,7 @@ GridLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: res.icon
|
text: res.icon
|
||||||
color: res.colour
|
color: res.colour
|
||||||
font.pointSize: (parent.width / 4) || 1
|
font.pointSize: (res.arcRadius * 0.7) || 1
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue