summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/quick/externaldraganddrop/DragAndDropTextItem.qml5
-rw-r--r--examples/quick/externaldraganddrop/externaldraganddrop.qml2
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/externaldraganddrop/DragAndDropTextItem.qml b/examples/quick/externaldraganddrop/DragAndDropTextItem.qml
index c241f6ed82..8a53745974 100644
--- a/examples/quick/externaldraganddrop/DragAndDropTextItem.qml
+++ b/examples/quick/externaldraganddrop/DragAndDropTextItem.qml
@@ -8,11 +8,12 @@ Rectangle {
id: item
property string display
property alias dropEnabled: acceptDropCB.checked
- color: dropArea.containsDrag ? "#CFC" : "#EEE"
+ color: dropArea.containsDrag ? Qt.darker(palette.base) : palette.base
+
ColorAnimation on color {
id: rejectAnimation
from: "#FCC"
- to: "#EEE"
+ to: palette.base
duration: 1000
}
Label {
diff --git a/examples/quick/externaldraganddrop/externaldraganddrop.qml b/examples/quick/externaldraganddrop/externaldraganddrop.qml
index b0cd20e69e..22b3f52089 100644
--- a/examples/quick/externaldraganddrop/externaldraganddrop.qml
+++ b/examples/quick/externaldraganddrop/externaldraganddrop.qml
@@ -5,7 +5,7 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
-Item {
+Pane {
id: root
width: 320
height: 480