attempting to make main ui more consistent

This commit is contained in:
Chris Cochrun 2022-10-22 07:01:40 -05:00
parent 066ec9eb1a
commit be59eadc58

View file

@ -36,7 +36,7 @@ FocusScope {
GridLayout { GridLayout {
anchors.fill: parent anchors.fill: parent
/* anchors.bottomMargin: 40 */ anchors.bottomMargin: 50
columns: 3 columns: 3
rowSpacing: 5 rowSpacing: 5
columnSpacing: 0 columnSpacing: 0
@ -82,11 +82,17 @@ FocusScope {
Layout.columnSpan: 3 Layout.columnSpan: 3
} }
Item {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.columnSpan: 3
Kirigami.Icon { Kirigami.Icon {
source: "arrow-left" source: "arrow-left"
Layout.preferredWidth: 100 implicitWidth: 100
Layout.preferredHeight: 200 implicitHeight: 200
Layout.alignment: Qt.AlignRight anchors.right: previewSlide.left
/* Layout.alignment: Qt.AlignRight */
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: previousSlideAction() onPressed: previousSlideAction()
@ -96,10 +102,10 @@ FocusScope {
Presenter.Slide { Presenter.Slide {
id: previewSlide id: previewSlide
Layout.preferredWidth: 700 implicitWidth: 700
Layout.preferredHeight: width / 16 * 9 implicitHeight: width / 16 * 9
Layout.minimumWidth: 300 /* minimumWidth: 300 */
Layout.alignment: Qt.AlignCenter anchors.centerIn: parent
textSize: width / 15 textSize: width / 15
itemType: root.itemType itemType: root.itemType
imageSource: imagebackground imageSource: imagebackground
@ -113,9 +119,10 @@ FocusScope {
Kirigami.Icon { Kirigami.Icon {
source: "arrow-right" source: "arrow-right"
Layout.preferredWidth: 100 implicitWidth: 100
Layout.preferredHeight: 200 implicitHeight: 200
Layout.alignment: Qt.AlignLeft anchors.left: previewSlide.right
/* Layout.alignment: Qt.AlignLeft */
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: nextSlideAction() onPressed: nextSlideAction()
@ -123,6 +130,8 @@ FocusScope {
} }
} }
}
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
} }
@ -175,11 +184,18 @@ FocusScope {
Layout.columnSpan: 3 Layout.columnSpan: 3
} }
/* Item { */
/* /\* Layout.preferredHeight: 20 *\/ */
/* Layout.fillHeight: true */
/* Layout.fillWidth: true */
/* Layout.columnSpan: 3 */
/* } */
}
ListView { ListView {
id: previewSlidesList id: previewSlidesList
Layout.fillWidth: true anchors.bottom: parent.bottom
Layout.fillHeight: true
Layout.columnSpan: 3
orientation: ListView.Horizontal orientation: ListView.Horizontal
cacheBuffer: 900 cacheBuffer: 900
reuseItems: true reuseItems: true
@ -247,15 +263,6 @@ FocusScope {
} }
} }
Item {
/* Layout.preferredHeight: 20 */
Layout.fillHeight: true
Layout.fillWidth: true
Layout.columnSpan: 3
}
}
Connections { Connections {
target: SlideObject target: SlideObject
function onVideoBackgroundChanged() { function onVideoBackgroundChanged() {