Commit f27f3d7b authored by Chupligin Sergey's avatar Chupligin Sergey

[ListView] add bottom gradient

parent 4789650d
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtGraphicalEffects 1.0
import QtQuick.Controls.Styles.Nemo 1.0
ListView {
......@@ -39,5 +39,25 @@ ListView {
}
}
}
Item{
id: bottom
width: parent.width
height: 30
anchors.bottom: parent.bottom
visible: listView.contentHeight >= listView.height
LinearGradient{
anchors.fill: parent
start: Qt.point(0, 0)
end: Qt.point(0, 30)
gradient: Gradient {
GradientStop { position: 0.0; color: "transparent" }
GradientStop { position: 1.0; color: "black" }
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment