PC3: Add separator to toolbar

This commit is contained in:
Jonah Brüchert 2020-05-28 23:41:31 +00:00
parent 50a699f9e3
commit 773d05d29b

View File

@ -36,5 +36,17 @@ T.ToolBar {
imagePath: "widgets/toolbar"
colorGroup: PlasmaCore.ColorScope.colorGroup
enabledBorders: control.position == T.ToolBar.Header ? PlasmaCore.FrameSvgItem.BottomBorder : PlasmaCore.FrameSvgItem.TopBorder
PlasmaCore.SvgItem {
svg: PlasmaCore.Svg {
imagePath: "widgets/listitem"
}
elementId: "separator"
anchors {
left: parent.left
right: parent.right
top: control.position == T.ToolBar.Footer || (control.parent.footer && control.parent.footer == control) ? parent.top : undefined
bottom: control.position == T.ToolBar.Footer || (control.parent.footer && control.parent.footer == control) ? undefined : parent.bottom
}
}
}
}