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:
|
build:
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -B bld/ .
|
cmake -DCMAKE_BUILD_TYPE=Debug -B bld/ .
|
||||||
make -j8 --dir bld/
|
make -j8 --dir bld/
|
||||||
rm -rf ~/.cache/librepresenter/Libre\ Presenter/qmlcache/
|
rm -rf ~/.cache/lumina/lumina/qmlcache/
|
||||||
run:
|
run:
|
||||||
RUST_LOG=debug ./bld/bin/lumina
|
RUST_LOG=debug ./bld/bin/lumina
|
||||||
lint:
|
lint:
|
||||||
|
|
|
@ -142,11 +142,25 @@ Item {
|
||||||
source: imageSource === "" ? mpv : backgroundImage
|
source: imageSource === "" ? mpv : backgroundImage
|
||||||
radius: blurRadius
|
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 {
|
Controls.Label {
|
||||||
id: lyrics
|
id: lyrics
|
||||||
text: root.text
|
text: root.text
|
||||||
|
/* text: root.textSize */
|
||||||
/* text: root.width / 1000 * 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 */
|
/* minimumPointSize: 5 */
|
||||||
fontSizeMode: Text.Fit
|
fontSizeMode: Text.Fit
|
||||||
font.family: chosenFont
|
font.family: chosenFont
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue