mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 21:33:59 +02:00
brmbarv3: Convert font sizes from points to pixels to be DPI-independent
This commit is contained in:
parent
4d72dff187
commit
e55f5cfa5e
15 changed files with 59 additions and 59 deletions
|
@ -9,7 +9,7 @@ Rectangle {
|
|||
border.color: btnColor
|
||||
|
||||
property string text: "Button"
|
||||
property int fontSize: 44
|
||||
property int fontSize: 60
|
||||
property variant btnColor: "#ffffff"
|
||||
|
||||
signal buttonClick
|
||||
|
@ -19,7 +19,7 @@ Rectangle {
|
|||
id: text1
|
||||
text: parent.text
|
||||
color: parent.btnColor
|
||||
font.pointSize: parent.fontSize
|
||||
font.pixelSize: 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