diff --git a/Site/ViewSolutions b/Site/ViewSolutions index cb5069c..78ba786 160000 --- a/Site/ViewSolutions +++ b/Site/ViewSolutions @@ -1 +1 @@ -Subproject commit cb5069cb740e91e72644584396436fc9e0054dd0 +Subproject commit 78ba7867221accc3f45478d9c2431b0b473d2272 diff --git a/Site/src/View/ListViewer.qml b/Site/src/View/ListViewer.qml index 7699435..2e18e3a 100644 --- a/Site/src/View/ListViewer.qml +++ b/Site/src/View/ListViewer.qml @@ -3,6 +3,7 @@ import QtQuick.Controls 2.15 import QtQuick.Controls.Material 2.15 import QtQuick.Controls.Universal 2.15 import QtQuick.Layouts 1.14 +import QtQuick.Window 2.15 import ViewSolutionsModule 1.0 @@ -10,8 +11,8 @@ ListView { id: viewPort anchors.margins: 24 - anchors.leftMargin: 40 - anchors.rightMargin: 40 + anchors.leftMargin: 10 + anchors.rightMargin: 10 delegate: Component { @@ -20,7 +21,10 @@ ListView { source: (data)? data.bakcBroundPicture: "" title: (data)? data.title: "" text: (data)? data.sourceText: "" - textMargins: 40 + sourceTextPixelSize: Math.max(width * 0.02, 4 * Screen.pixelDensity) + headerTextPixelSize: Math.max(width * 0.04, 8 * Screen.pixelDensity) + + textMargins: 20 width: viewPort.width viewground: viewgroundItem listView: viewPort diff --git a/Site/src/View/main.qml b/Site/src/View/main.qml index f0efdeb..3f529be 100644 --- a/Site/src/View/main.qml +++ b/Site/src/View/main.qml @@ -35,7 +35,11 @@ ApplicationWindow { ListViewer { id: sourceList model: (mainModel)? mainModel.pageModel: null - anchors.fill: parent + + anchors.top: parent.top; + anchors.bottom: parent.bottom + anchors.horizontalCenter: parent.horizontalCenter + width: parent.width - 40 } SideBar {