From 3809e697e8e688b5323c7add4dfc643a9afdf135 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 14 Mar 2023 14:40:43 -0500 Subject: [PATCH] add labels to SongEditor.qml This makes it more clear what each field is for --- src/qml/presenter/SongEditor.qml | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index fb822b9..e307d56 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -146,6 +146,24 @@ Item { Controls.SplitView.preferredWidth: 500 Controls.SplitView.minimumWidth: 500 + Controls.Label { + id: songTitleLabel + Layout.preferredWidth: 300 + Layout.fillWidth: true + Layout.leftMargin: 20 + Layout.rightMargin: 20 + leftPadding: 10 + text: "Title" + + Rectangle { + anchors.top: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: Kirigami.Units.smallSpacing / 3 + color: Kirigami.Theme.disabledTextColor + } + } + Controls.TextField { id: songTitleField @@ -159,6 +177,25 @@ Item { padding: 10 onEditingFinished: updateTitle(text); } + + Controls.Label { + id: songVorderLabel + Layout.preferredWidth: 300 + Layout.fillWidth: true + Layout.leftMargin: 20 + Layout.rightMargin: 20 + leftPadding: 10 + text: "Verse Order format: V1 C1 V2 B1" + + Rectangle { + anchors.top: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: Kirigami.Units.smallSpacing / 3 + color: Kirigami.Theme.disabledTextColor + } + } + Controls.TextField { id: songVorderField @@ -173,6 +210,24 @@ Item { onEditingFinished: updateVerseOrder(text); } + Controls.Label { + id: songLyricsLabel + Layout.preferredWidth: 300 + Layout.fillWidth: true + Layout.leftMargin: 20 + Layout.rightMargin: 20 + leftPadding: 10 + text: "Lyrics" + + Rectangle { + anchors.top: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: Kirigami.Units.smallSpacing / 3 + color: Kirigami.Theme.disabledTextColor + } + } + Controls.ScrollView { id: songLyricsField @@ -198,6 +253,25 @@ Item { onPressed: editorTimer.running = true } } + + Controls.Label { + id: songAuthorLabel + Layout.preferredWidth: 300 + Layout.fillWidth: true + Layout.leftMargin: 20 + Layout.rightMargin: 20 + leftPadding: 10 + text: "Artist" + + Rectangle { + anchors.top: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: Kirigami.Units.smallSpacing / 3 + color: Kirigami.Theme.disabledTextColor + } + } + Controls.TextField { id: songAuthorField @@ -212,6 +286,24 @@ Item { onEditingFinished: updateAuthor(text) } + Controls.Label { + id: songAudioLabel + Layout.preferredWidth: 300 + Layout.fillWidth: true + Layout.leftMargin: 20 + Layout.rightMargin: 20 + leftPadding: 10 + text: "Audio File" + + Rectangle { + anchors.top: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: Kirigami.Units.smallSpacing / 3 + color: Kirigami.Theme.disabledTextColor + } + } + RowLayout { Layout.fillWidth: true Layout.preferredWidth: 300