Added readme and cleaned up some ui pieces
This commit is contained in:
parent
6e9e1eca0d
commit
42e772591c
9 changed files with 74 additions and 53 deletions
|
@ -25,4 +25,5 @@ Kirigami.ApplicationWindow {
|
|||
function toggleLibrary() {
|
||||
libraryOpen = !libraryOpen
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -22,19 +22,13 @@ Kirigami.ActionToolBar {
|
|||
displayComponent: Component {
|
||||
Kirigami.SearchField {
|
||||
id: searchField
|
||||
anchors.centerIn: parent
|
||||
width: parent.width / 3
|
||||
onAccepted: showPassiveNotification(searchField.text, 3000)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Kirigami.Action {
|
||||
icon.name: "fileopen"
|
||||
text: "VideoBG"
|
||||
onTriggered: {
|
||||
print("Action button in buttons page clicked");
|
||||
fileDialog.open()
|
||||
}
|
||||
},
|
||||
Kirigami.Action {
|
||||
icon.name: "view-presentation"
|
||||
text: "Go Live"
|
||||
|
|
|
@ -25,8 +25,12 @@ Item {
|
|||
label: title
|
||||
subtitle: author
|
||||
hoverEnabled: true
|
||||
onClicked: ListView.view.currentIndex = index
|
||||
|
||||
onClicked: {
|
||||
ListView.view.currentIndex = index
|
||||
songTitle = title
|
||||
songLyrics = lyrics
|
||||
showPassiveNotification(songLyrics, 3000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@ import "./" as Presenter
|
|||
Controls.Page {
|
||||
id: mainPage
|
||||
padding: 0
|
||||
property var video: null
|
||||
property url videoBackground: ""
|
||||
property url imageBackground: ""
|
||||
property string songTitle: ""
|
||||
property string songLyrics: ""
|
||||
|
||||
Item {
|
||||
id: mainItem
|
||||
|
@ -57,23 +60,6 @@ Controls.Page {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
FileDialog {
|
||||
id: fileDialog
|
||||
title: "Please choose a video"
|
||||
folder: shortcuts.home
|
||||
selectMultiple: false
|
||||
onAccepted: {
|
||||
print("You chose: " + fileDialog.fileUrls)
|
||||
video = fileDialog.fileUrl
|
||||
}
|
||||
onRejected: {
|
||||
print("Canceled")
|
||||
/* Qt.quit() */
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: presentLoader
|
||||
active: presenting
|
||||
|
@ -93,4 +79,22 @@ Controls.Page {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileDialog {
|
||||
id: fileDialog
|
||||
title: "Please choose a video"
|
||||
folder: shortcuts.home
|
||||
selectMultiple: false
|
||||
onAccepted: {
|
||||
print("You chose: " + fileDialog.fileUrls)
|
||||
background = fileDialog.fileUrls
|
||||
|
||||
|
||||
|
||||
}
|
||||
onRejected: {
|
||||
print("Canceled")
|
||||
/* Qt.quit() */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,11 @@ Item {
|
|||
}
|
||||
Controls.ToolButton {
|
||||
text: "Background"
|
||||
icon.name: "fileopen"
|
||||
onClicked: {
|
||||
print("Action button in buttons page clicked");
|
||||
fileDialog.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +62,8 @@ Item {
|
|||
Controls.TextField {
|
||||
implicitWidth: 300
|
||||
Layout.leftMargin: 20
|
||||
placeholderText: "Song Title..."
|
||||
text: songTitle
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
@ -72,6 +79,9 @@ Item {
|
|||
Layout.bottomMargin: 30
|
||||
Layout.leftMargin: 20
|
||||
placeholderText: "Put lyrics here..."
|
||||
persistentSelection: true
|
||||
text: songLyrics
|
||||
textFormat: TextEdit.MarkdownText
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
@ -82,5 +92,4 @@ Item {
|
|||
Layout.rightMargin: 20
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue