Scale all QML elements according to the current display size

This commit is contained in:
Jan-Martin Raemer 2022-06-03 22:07:50 +02:00
parent 9e7a55fc20
commit bcdf3d94f2
15 changed files with 278 additions and 109 deletions

View file

@ -6,7 +6,7 @@ import QtQuick.Controls 2.4
*/
Item {
id: container
property int margins: 20
property int margins: StyleMargins.defaultMargin
RoundImageButton{
id: back
@ -36,7 +36,7 @@ Item {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
height: 210
height: StyleSizes.navigationListHeight
color: "#99ffffff"
@ -51,12 +51,12 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.margins: 20
anchors.margins: StyleMargins.defaultMargin
height: parent.height - 40
height: parent.height - 2*StyleMargins.defaultMargin
model: navigationList.pModelItems
spacing: 20
spacing: StyleSpacings.defaultSpacing
orientation: ListView.Horizontal
delegate: NavigationListDelegate{
id: delegate