mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 19:18:53 +00:00
SQ(StatusDraggableListItem): Added new property changeColorOnDragActive
This property holds if background color will be changed on drag active or not.
This commit is contained in:
parent
7313e224ae
commit
1af5c166c5
@ -218,6 +218,13 @@ ItemDelegate {
|
||||
*/
|
||||
readonly property alias containsMouse: dragHandler.containsMouse
|
||||
|
||||
/*!
|
||||
\qmlproperty bool StatusDraggableListItem::changeColorOnDragActive
|
||||
This property holds if background color will be changed on drag active or not
|
||||
Defaults to "dragActive" (ie background will change on dragActive = true)
|
||||
*/
|
||||
property bool changeColorOnDragActive: dragActive
|
||||
|
||||
Drag.dragType: Drag.Automatic
|
||||
Drag.hotSpot.x: dragHandler.mouseX
|
||||
Drag.hotSpot.y: dragHandler.mouseY
|
||||
@ -252,7 +259,7 @@ ItemDelegate {
|
||||
]
|
||||
|
||||
background: Rectangle {
|
||||
color: root.dragActive && !root.customizable ? Theme.palette.alphaColor(Theme.palette.baseColor2, 0.7) : root.bgColor
|
||||
color: root.changeColorOnDragActive && !root.customizable? Theme.palette.alphaColor(Theme.palette.baseColor2, 0.7) : root.bgColor
|
||||
border.width: root.customizable ? 0 : 1
|
||||
border.color: Theme.palette.baseColor2
|
||||
radius: root.customizable ? 0 : 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user