put the framesvg in an inner element
also move the boders of the framesvg outside
This commit is contained in:
parent
c3285d091a
commit
7331d06c7b
@ -20,12 +20,10 @@
|
|||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
Item{
|
||||||
id: toolBar
|
id: toolBar
|
||||||
imagePath: "widgets/frame"
|
|
||||||
prefix: "raised"
|
|
||||||
width: parent.width
|
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.
|
// The current set of tools; null if none.
|
||||||
property Item tools
|
property Item tools
|
||||||
@ -109,6 +107,19 @@ PlasmaCore.FrameSvgItem {
|
|||||||
oldContainer.opacity = 0
|
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 {
|
Item {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
|
Loading…
Reference in New Issue
Block a user