Sidebar: add left border to event list

This commit is contained in:
Timotej Lazar 2021-09-15 22:03:11 +02:00
parent 65daa139a4
commit 97422bb60a
No known key found for this signature in database
GPG key ID: B6F38793D143456F

View file

@ -148,17 +148,28 @@ Page {
} }
} }
Events { Frame {
id: events
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Layout.rightMargin: -control.padding Layout.rightMargin: -control.padding
focus: true padding: 1
rightPadding: 0
background: Rectangle {
color: 'transparent'
border.color: events.activeFocus ? palette.highlight : palette.dark
radius: 2
}
Events {
id: events
model: eventFilter model: eventFilter
tags: eventList.tags tags: eventList.tags
anchors.fill: parent
focus: true
onEditingChanged: video.pause(editing) onEditingChanged: video.pause(editing)
onSelected: { onSelected: {
video.pause(true) video.pause(true)
@ -178,17 +189,6 @@ Page {
font.pixelSize: filter.font.pixelSize * 0.75 font.pixelSize: filter.font.pixelSize * 0.75
color: 'gray' color: 'gray'
} }
Rectangle {
anchors { left: parent.left; right: parent.right; top: parent.top }
implicitHeight: 1
color: parent.activeFocus ? palette.highlight : palette.dark
}
Rectangle {
anchors { left: parent.left; right: parent.right; bottom: parent.bottom }
implicitHeight: 1
color: parent.activeFocus ? palette.highlight : palette.dark
} }
} }