gave the slide a black to put in front of loading videos

This commit is contained in:
Chris Cochrun 2022-04-04 06:43:05 -05:00
parent 62e1b07ec1
commit e52d44f937
10 changed files with 136 additions and 12 deletions

View file

@ -13,6 +13,7 @@ Item {
property string imageBackground
property string videoBackground
property string textAlignment
Presenter.Slide {
id: representation
@ -23,4 +24,23 @@ Item {
videoSource: videoBackground
preview: true
}
Component.onCompleted: updateHAlignment(textAlignment)
function updateHAlignment(alignment) {
switch (alignment) {
case "left" :
representation.horizontalAlignment = Text.AlignLeft;
break;
case "center" :
representation.horizontalAlignment = Text.AlignHCenter;
break;
case "right" :
representation.horizontalAlignment = Text.AlignRight;
break;
case "justify" :
representation.horizontalAlignment = Text.AlignJustify;
break;
}
}
}