From daa7e9e19215441f20f30d3f604d606bb38a2b8a Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 11 Jan 2023 13:43:32 -0600 Subject: [PATCH] making some sizing differences to be using Kirigami.Units --- src/qml/presenter/MainWindow.qml | 8 ++++---- src/qml/presenter/Presentation.qml | 10 +++++----- src/qml/presenter/ServiceList.qml | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/qml/presenter/MainWindow.qml b/src/qml/presenter/MainWindow.qml index 385c03b..4ed9082 100644 --- a/src/qml/presenter/MainWindow.qml +++ b/src/qml/presenter/MainWindow.qml @@ -73,8 +73,8 @@ Controls.Page { Presenter.ServiceList { id: leftDock - Controls.SplitView.preferredWidth: 200 - Controls.SplitView.maximumWidth: 300 + Controls.SplitView.preferredWidth: Kirigami.Units.largeSpacing * 40 + Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 60 z: 1 } @@ -117,8 +117,8 @@ Controls.Page { Presenter.Library { id: library - Controls.SplitView.preferredWidth: libraryOpen ? 200 : 0 - Controls.SplitView.maximumWidth: 350 + Controls.SplitView.preferredWidth: libraryOpen ? Kirigami.Units.largeSpacing * 40 : 0 + Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 60 visible: libraryOpen ? true : false } diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 1581a72..ba1810c 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -79,8 +79,8 @@ FocusScope { Kirigami.Icon { source: "arrow-left" - implicitWidth: 100 - implicitHeight: 200 + implicitWidth: Kirigami.Units.largeSpacing * 20 + implicitHeight: Kirigami.Units.largeSpacing * 40 anchors.right: previewSlide.left anchors.verticalCenter: parent.verticalCenter /* Layout.alignment: Qt.AlignRight */ @@ -93,7 +93,7 @@ FocusScope { Presenter.Slide { id: previewSlide - implicitWidth: 700 + implicitWidth: Kirigami.Units.largeSpacing * 100 implicitHeight: width / 16 * 9 /* minimumWidth: 300 */ anchors.centerIn: parent @@ -110,8 +110,8 @@ FocusScope { Kirigami.Icon { source: "arrow-right" - implicitWidth: 100 - implicitHeight: 200 + implicitWidth: Kirigami.Units.largeSpacing * 20 + implicitHeight: Kirigami.Units.largeSpacing * 40 anchors.left: previewSlide.right anchors.verticalCenter: parent.verticalCenter /* Layout.alignment: Qt.AlignLeft */ diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index a66b697..5f7cfe9 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -88,7 +88,7 @@ Item { Kirigami.AbstractListItem { id: serviceListItem implicitWidth: serviceItemList.width - height: 30 + height: Kirigami.Units.gridUnit * 2 DropArea { id: serviceDrop @@ -261,7 +261,7 @@ Item { anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: 5 - width: 20 + /* width: 20 */ listItem: serviceListItem listView: serviceItemList onMoveRequested: serviceItemModel.moveRows(oldIndex,