adding some debug info and fixing font sizes?
This commit is contained in:
parent
c36802f5e4
commit
7061ec2ed8
2 changed files with 16 additions and 2 deletions
|
@ -142,11 +142,25 @@ Item {
|
|||
source: imageSource === "" ? mpv : backgroundImage
|
||||
radius: blurRadius
|
||||
|
||||
Controls.Label {
|
||||
text: Math.max(root.width, 1000) / 1000 * Math.max(root.textSize, 50)
|
||||
horizontalAlignment: hTextAlignment
|
||||
verticalAlignment: vTextAlignment
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.topMargin: 10
|
||||
anchors.bottomMargin: 10
|
||||
anchors.leftMargin: 10
|
||||
anchors.rightMargin: 10
|
||||
visible: RSettings.debug
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
id: lyrics
|
||||
text: root.text
|
||||
/* text: root.textSize */
|
||||
/* text: root.width / 1000 * root.textSize */
|
||||
font.pixelSize: root.width / 1000 * root.textSize
|
||||
font.pixelSize: Math.max(root.width, 1000) / 1000 * Math.max(root.textSize, 50)
|
||||
/* minimumPointSize: 5 */
|
||||
fontSizeMode: Text.Fit
|
||||
font.family: chosenFont
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue