Make list headers transparent

This commit is contained in:
Christian Muehlhaeuser 2017-08-30 14:48:06 +02:00
parent 87382ec1f8
commit b134c51fb2
2 changed files with 17 additions and 6 deletions

View file

@ -17,17 +17,26 @@ ColumnLayout {
headerPositioning: ListView.OverlayHeader
header: Rectangle {
width: parent.width
height: 32
header: Item {
SystemPalette { id: headerPalette; colorGroup: SystemPalette.Active }
z: 2
color: Material.background
width: parent.width
height: 36
Label {
z: 3
anchors.fill: parent
anchors.leftMargin: 10
text: name
font.pixelSize: 18
font.weight: Font.Light
verticalAlignment: Label.AlignVCenter
color: headerPalette.windowText
}
Rectangle {
anchors.fill: parent
color: headerPalette.window
opacity: 0.8
}
}
}

View file

@ -184,7 +184,9 @@ ApplicationWindow {
columns: 2
rows: 1
anchors.fill: parent
anchors.margins: 8
anchors.margins: 0
columnSpacing: 0
rowSpacing: 0
TweetView {
Layout.row: 0