mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmbar v3 BarButton: Fix fontSize property
This commit is contained in:
parent
5ac08ac318
commit
9afd1788d0
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ Rectangle {
|
|||
border.color: "#ffffff"
|
||||
|
||||
property string text: "Button"
|
||||
property int fontSize: 46
|
||||
property int fontSize: 44
|
||||
|
||||
signal buttonClick
|
||||
onButtonClick: { /* Supplied by component user. */ }
|
||||
|
@ -18,7 +18,7 @@ Rectangle {
|
|||
id: text1
|
||||
color: "#ffffff"
|
||||
text: parent.text
|
||||
font.pointSize: 44
|
||||
font.pointSize: parent.fontSize
|
||||
scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue