a nicer split handle
This commit is contained in:
parent
0cfc238ded
commit
511c34ee41
1 changed files with 13 additions and 8 deletions
|
@ -217,6 +217,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.SplitView {
|
Controls.SplitView {
|
||||||
|
id: songSplitView
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
|
@ -226,13 +227,13 @@ Item {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: 1
|
width: 1
|
||||||
color: parent.Controls.SplitHandle.hovered ? Kirigami.Theme.hoverColor : Kirigami.Theme.backgroundColor
|
color: parent.Controls.SplitHandle.hovered ? Qt.lighter(Kirigami.Theme.backgroundColor, 1.5) : Qt.darker(Kirigami.Theme.backgroundColor, 1.5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Controls.SplitView.fillHeight: true
|
Controls.SplitView.fillHeight: true
|
||||||
Controls.SplitView.preferredWidth: 500
|
Controls.SplitView.preferredWidth: 400
|
||||||
Controls.SplitView.minimumWidth: 300
|
Controls.SplitView.minimumWidth: 300
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
|
@ -494,9 +495,13 @@ Item {
|
||||||
songID = thisSong.id;
|
songID = thisSong.id;
|
||||||
|
|
||||||
updateHorizontalTextAlignment("Center");
|
updateHorizontalTextAlignment("Center");
|
||||||
|
changeSlideHAlignment("Center");
|
||||||
updateVerticalTextAlignment("Center");
|
updateVerticalTextAlignment("Center");
|
||||||
|
changeSlideVAlignment("Center");
|
||||||
updateFont("Noto Sans");
|
updateFont("Noto Sans");
|
||||||
|
changeSlideFont("Noto Sans", true);
|
||||||
updateFontSize(50);
|
updateFontSize(50);
|
||||||
|
changeSlideFontSize(50, true);
|
||||||
updateLyrics("Lyrics");
|
updateLyrics("Lyrics");
|
||||||
songList.loadVideo();
|
songList.loadVideo();
|
||||||
console.log("New song with ID: " + song.id);
|
console.log("New song with ID: " + song.id);
|
||||||
|
@ -525,11 +530,11 @@ Item {
|
||||||
song.checkVerseOrder();
|
song.checkVerseOrder();
|
||||||
songID = updatedSong.id;
|
songID = updatedSong.id;
|
||||||
|
|
||||||
/* changeSlideHAlignment(song.horizontalTextAlignment); */
|
changeSlideHAlignment(song.horizontalTextAlignment);
|
||||||
/* changeSlideVAlignment(song.verticalTextAlignment); */
|
changeSlideVAlignment(song.verticalTextAlignment);
|
||||||
/* changeSlideFont(song.font, true); */
|
changeSlideFont(song.font, true);
|
||||||
/* changeSlideFontSize(song.fontSize, true) */
|
changeSlideFontSize(song.fontSize, true)
|
||||||
/* changeSlideText(songProxyModel.modelIndex(index).row); */
|
changeSlideText(songProxyModel.modelIndex(index).row);
|
||||||
console.log("Changing to song: " + song.title + " with ID: " + songID);
|
console.log("Changing to song: " + song.title + " with ID: " + songID);
|
||||||
footerFirstText = "Song: ";
|
footerFirstText = "Song: ";
|
||||||
footerSecondText = song.title;
|
footerSecondText = song.title;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue