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,24 +6,24 @@ ScrollView{
style: ScrollViewStyle{
transientScrollBars: true
handle: Item {
implicitWidth: 16
implicitHeight: 8
implicitWidth: StyleSizes.scrollHandleWidth
implicitHeight: StyleSizes.scrollHandleHeight
Rectangle {
color: "blue"
border.color: "black"
radius: height/2
anchors.fill: parent
anchors.topMargin: 1
anchors.leftMargin: 1
anchors.rightMargin: 1
anchors.bottomMargin: 1
anchors.topMargin: StyleMargins.scrollHandleMargin
anchors.leftMargin: StyleMargins.scrollHandleMargin
anchors.rightMargin: StyleMargins.scrollHandleMargin
anchors.bottomMargin: StyleMargins.scrollHandleMargin
}
}
scrollBarBackground: Rectangle{
color: "transparent"
border.color: "grey"
border.width: 1
height: 8
border.width: StyleSizes.scrollHandleBorderWidth
height: StyleSizes.scrollHandleHeight
radius: height/2
}
decrementControl: Item{}