diff --git a/src/qml/presenter/Settings.qml b/src/qml/presenter/Settings.qml index 4f0e0f8..208e0b9 100644 --- a/src/qml/presenter/Settings.qml +++ b/src/qml/presenter/Settings.qml @@ -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); + } + } } diff --git a/src/qml/presenter/Slide.qml b/src/qml/presenter/Slide.qml index d1aef71..9faa36f 100644 --- a/src/qml/presenter/Slide.qml +++ b/src/qml/presenter/Slide.qml @@ -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 diff --git a/src/rust/settings.rs b/src/rust/settings.rs index e1257e1..a85c87d 100644 --- a/src/rust/settings.rs +++ b/src/rust/settings.rs @@ -14,6 +14,7 @@ mod settings { #[qproperty(QString, sound_effect)] #[qproperty(QUrl, last_save_file)] #[qproperty(QUrl, loaded_file)] + #[qproperty(bool, debug)] type Settings = super::SettingsRust; #[qinvokable] @@ -40,6 +41,7 @@ pub struct SettingsRust { sound_effect: QString, last_save_file: QUrl, loaded_file: QUrl, + debug: bool, } impl Default for SettingsRust { @@ -50,6 +52,7 @@ impl Default for SettingsRust { sound_effect: QString::from(""), last_save_file: QUrl::from(""), loaded_file: QUrl::from(""), + debug: false, } } }