Verified Commit b30302e3 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

effects/private: Move highlight inside thumbnail component

..so that they always match in size, regardless of different
  combinations of drag&drop and animation states.

And also fix selected property to use id-qualified access.
parent 2a6c9f7f
......@@ -139,6 +139,20 @@ Item {
}
}
PlasmaCore.FrameSvgItem {
anchors {
fill: parent
topMargin: -PlasmaCore.Units.smallSpacing * 2
leftMargin: -PlasmaCore.Units.smallSpacing * 2
rightMargin: -PlasmaCore.Units.smallSpacing * 2
bottomMargin: -(Math.round(icon.height / 4) + caption.height + (PlasmaCore.Units.smallSpacing * 2))
}
imagePath: "widgets/viewitem"
prefix: "hover"
z: -1
visible: !thumb.windowHeap.dragActive && (hoverHandler.hovered || thumb.selected) && Window.window.activeFocusItem && windowHeap.effectiveOrganized
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
......@@ -281,20 +295,6 @@ Item {
}
}
PlasmaCore.FrameSvgItem {
anchors {
fill: parent
topMargin: -PlasmaCore.Units.smallSpacing * 2
leftMargin: -PlasmaCore.Units.smallSpacing * 2
rightMargin: -PlasmaCore.Units.smallSpacing * 2
bottomMargin: -(Math.round(icon.height / 4) + caption.height + (PlasmaCore.Units.smallSpacing * 2))
}
imagePath: "widgets/viewitem"
prefix: "hover"
z: -1
visible: !thumb.windowHeap.dragActive && (hoverHandler.hovered || selected) && Window.window.activeFocusItem && windowHeap.effectiveOrganized
}
HoverHandler {
id: hoverHandler
onHoveredChanged: if (hovered !== selected) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment