building a debug setting in

This commit is contained in:
Chris Cochrun 2024-01-11 06:06:23 -06:00
parent 7061ec2ed8
commit 1ab93122a5
3 changed files with 23 additions and 12 deletions

View file

@ -77,6 +77,14 @@ Kirigami.OverlaySheet {
Kirigami.FormData.label: i18nc("@label:textbox", "Obs Connection")
text: ObsModel.connected
}
Controls.CheckBox {
Kirigami.FormData.label: i18nc("@label:checkbox", "Debug")
onClicked: {
RSettings.debug = checked;
console.log(RSettings.debug);
}
}
}

View file

@ -142,18 +142,18 @@ 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 { */
/* 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