fix(ProfileShowcase|): Change stroke position from the outside to inside

This commit is contained in:
Alex Jbanca 2024-03-18 10:14:35 +02:00 committed by Alex Jbanca
parent 864be0ad37
commit 3b57ece338
1 changed files with 21 additions and 12 deletions

View File

@ -321,22 +321,31 @@ DoubleFlickableWithFolding {
visible: d.dragItem && d.dragItem.showcaseMaxVisibility >= showcaseVisibility
background: ShapeRectangle {
path.strokeColor: dropArea.containsDrag ? Theme.palette.primaryColor2 : Theme.palette.directColor7
path.fillColor: dropArea.containsDrag ? Theme.palette.primaryColor3 : Theme.palette.getColor(Theme.palette.baseColor4, 0.7)
DropArea {
id: dropArea
background: Rectangle {
id: shapeWrapper
color: dropArea.containsDrag ? Theme.palette.primaryColor3 : Theme.palette.getColor(Theme.palette.baseColor4, 0.7)
radius: Style.current.radius
ShapeRectangle {
anchors.fill: parent
keys: visibilityDropAreaButton.dropAreaKeys
anchors.margins: path.strokeWidth / 2
radius: shapeWrapper.radius
path.strokeColor: dropArea.containsDrag ? Theme.palette.primaryColor3 : Theme.palette.directColor7
path.fillColor: "transparent"
DropArea {
id: dropArea
onEntered: function(drag) {
drag.accept()
}
anchors.fill: parent
keys: visibilityDropAreaButton.dropAreaKeys
onDropped: function(drop) {
d.setVisibilityInternalRequested(drop.source.key, visibilityDropAreaButton.showcaseVisibility)
onEntered: function(drag) {
drag.accept()
}
onDropped: function(drop) {
d.setVisibilityInternalRequested(drop.source.key, visibilityDropAreaButton.showcaseVisibility)
}
}
}
}