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
2
justfile
2
justfile
|
@ -3,7 +3,7 @@ default:
|
|||
build:
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug -B bld/ .
|
||||
make -j8 --dir bld/
|
||||
rm -rf ~/.cache/librepresenter/Libre\ Presenter/qmlcache/
|
||||
rm -rf ~/.cache/lumina/lumina/qmlcache/
|
||||
run:
|
||||
RUST_LOG=debug ./bld/bin/lumina
|
||||
lint:
|
||||
|
|
|
@ -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