put the framesvg in an inner element

also move the boders of the framesvg outside
This commit is contained in:
Marco Martin 2011-11-09 20:09:36 +01:00
parent c3285d091a
commit 7331d06c7b

View File

@ -20,12 +20,10 @@
import QtQuick 1.1
import org.kde.plasma.core 0.1 as PlasmaCore
PlasmaCore.FrameSvgItem {
Item{
id: toolBar
imagePath: "widgets/frame"
prefix: "raised"
width: parent.width
height: 48 + margins.top + margins.bottom
height: 48 + frameSvg.margins.top + frameSvg.margins.bottom
// The current set of tools; null if none.
property Item tools
@ -109,6 +107,19 @@ PlasmaCore.FrameSvgItem {
oldContainer.opacity = 0
}
PlasmaCore.FrameSvgItem {
id: frameSvg
imagePath: "widgets/frame"
prefix: "raised"
anchors {
fill: parent
leftMargin: -margins.left
rightMargin: -margins.right
topMargin: toolBar.y <= 0 ? -margins.top : 0
bottomMargin: toolBar.y >= toolBar.parent.height - toolBar.height ? -margins.bottom : 0
}
}
Item {
anchors {
fill: parent