Tweak list header to be slightly transparent

This commit is contained in:
Christian Muehlhaeuser 2017-08-31 20:54:29 +02:00
parent b73193a837
commit 3502479dbe
No known key found for this signature in database
GPG key ID: BA4CF857DD4117E9
2 changed files with 5 additions and 8 deletions

View file

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

View file

@ -40,12 +40,10 @@ ApplicationWindow {
Component {
id: messagesDelegate
TweetDelegate {
}
TweetDelegate { }
}
header: ToolBar {
/* MouseArea {
anchors.fill: parent;
property variant clickPos: "1,1"
@ -60,6 +58,7 @@ ApplicationWindow {
mainWindow.y += delta.y;
}
} */
RowLayout {
spacing: 20
anchors.fill: parent