Scale all QML elements according to the current display size
This commit is contained in:
parent
9e7a55fc20
commit
bcdf3d94f2
15 changed files with 278 additions and 109 deletions
|
|
@ -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{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue