Adjust Grid

Change-Id: I8e432cda54a857d146b4b9446c48f4a5d19fe9f3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-12-06 14:49:36 +01:00
parent 70a1769ea2
commit e3db8c31c2
2 changed files with 26 additions and 25 deletions

View File

@@ -32,26 +32,25 @@ import projectmodel 1.0
Rectangle { Rectangle {
id: appBackground id: appBackground
width: Constants.width
height: Constants.height height: Constants.height
//anchors.fill: parent //this is required to make it responsive but commented out to force minimum size to work
color: Constants.currentThemeBackground color: Constants.currentThemeBackground
width: 1842
//anchors.fill: parent //this is required to make it responsive but commented out to force minimum size to work
property int pageIndex: 0 property int pageIndex: 0
property bool designMode: !(typeof (Constants.projectModel.designMode) === "undefined") property bool designMode: !(typeof (Constants.projectModel.designMode) === "undefined")
Rectangle { // Rectangle {
id: modeBar // id: modeBar
width: designMode ? 45 : 0 // width: designMode ? 45 : 0
color: Constants.modeBarCurrent // color: Constants.modeBarCurrent
border.color: "#00000000" // border.color: "#00000000"
anchors.left: parent.left // anchors.left: parent.left
anchors.top: parent.top // anchors.top: parent.top
anchors.bottom: parent.bottom // anchors.bottom: parent.bottom
anchors.bottomMargin: 0 // anchors.bottomMargin: 0
anchors.leftMargin: 0 // anchors.leftMargin: 0
anchors.topMargin: 0 // anchors.topMargin: 0
} // }
TestControlPanel { TestControlPanel {
id: controlPanel id: controlPanel
@@ -68,10 +67,11 @@ Rectangle {
ColumnLayout { ColumnLayout {
id: openCreatelayout id: openCreatelayout
y: 188 y: 188
width: 250
anchors.left: parent.left anchors.left: parent.left
anchors.right: thumbnails.left
anchors.rightMargin: 20
spacing: 15 spacing: 15
anchors.leftMargin: 70 anchors.leftMargin: 20
PushButton { PushButton {
id: createProject id: createProject
@@ -126,9 +126,10 @@ Rectangle {
ColumnLayout { ColumnLayout {
id: currentPageMenuLayout id: currentPageMenuLayout
y: 470 y: 470
width: 250
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 70 anchors.right: thumbnails.left
anchors.rightMargin: 20
anchors.leftMargin: 20
spacing: 15 spacing: 15
CheckButton { CheckButton {
@@ -186,7 +187,7 @@ Rectangle {
id: brandBar id: brandBar
y: 0 y: 0
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 70 anchors.leftMargin: 20
} }
MainGridStack { MainGridStack {
@@ -198,7 +199,7 @@ Rectangle {
anchors.topMargin: Constants.basic ? 188 : 226 anchors.topMargin: Constants.basic ? 188 : 226
anchors.rightMargin: 56 anchors.rightMargin: 56
anchors.bottomMargin: 54 anchors.bottomMargin: 54
anchors.leftMargin: 355 anchors.leftMargin: 290
listStackLayoutCurrentIndex: appBackground.pageIndex listStackLayoutCurrentIndex: appBackground.pageIndex
stackLayoutCurrentIndex: appBackground.pageIndex stackLayoutCurrentIndex: appBackground.pageIndex
} }
@@ -210,7 +211,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.leftMargin: 355 anchors.leftMargin: 290
anchors.rightMargin: 55 anchors.rightMargin: 55
anchors.bottomMargin: 14 anchors.bottomMargin: 14
spacing: 0 spacing: 0
@@ -353,7 +354,7 @@ Rectangle {
anchors.right: listGridToggle.left anchors.right: listGridToggle.left
layoutDirection: Qt.LeftToRight layoutDirection: Qt.LeftToRight
spacing: 0 spacing: 0
anchors.leftMargin: 355 anchors.leftMargin: 290
Search { Search {
id: searchBar id: searchBar
@@ -410,7 +411,7 @@ Rectangle {
/*##^## /*##^##
Designer { Designer {
D{i:0;height:1080;width:1920} D{i:0;formeditorZoom:0.75;height:1080;width:1920}D{i:2}D{i:7}
} }
##^##*/ ##^##*/

View File

@@ -30,7 +30,7 @@ import StudioTheme 1.0
import projectmodel 1.0 import projectmodel 1.0
QtObject { QtObject {
readonly property int width: 1920 readonly property int width: 1842
readonly property int height: 1080 readonly property int height: 1080
property bool communityEdition: false property bool communityEdition: false