32 lines
1.2 KiB
QML
32 lines
1.2 KiB
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Controls.Styles 1.4
|
|
|
|
ScrollView{
|
|
style: ScrollViewStyle{
|
|
transientScrollBars: true
|
|
handle: Item {
|
|
implicitWidth: StyleSizes.scrollHandleWidth
|
|
implicitHeight: StyleSizes.scrollHandleHeight
|
|
Rectangle {
|
|
color: "blue"
|
|
border.color: "black"
|
|
radius: height/2
|
|
anchors.fill: parent
|
|
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: StyleSizes.scrollHandleBorderWidth
|
|
height: StyleSizes.scrollHandleHeight
|
|
radius: height/2
|
|
}
|
|
decrementControl: Item{}
|
|
incrementControl: Item{}
|
|
}
|
|
}
|