diff options
Diffstat (limited to 'examples/quickcontrols/wearable/Wearable/ListItem.qml')
-rw-r--r-- | examples/quickcontrols/wearable/Wearable/ListItem.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/quickcontrols/wearable/Wearable/ListItem.qml b/examples/quickcontrols/wearable/Wearable/ListItem.qml new file mode 100644 index 0000000000..b935a4c728 --- /dev/null +++ b/examples/quickcontrols/wearable/Wearable/ListItem.qml @@ -0,0 +1,26 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Effects +import WearableStyle + +Item { + Rectangle { + id: listitem + width: parent.width + height: parent.height + radius: 8 + color: UIStyle.listItemBackground + } + + MultiEffect { + source: listitem + anchors.fill: parent + shadowEnabled: true + shadowBlur: 0.3 + shadowHorizontalOffset: 2 + shadowVerticalOffset: 2 + opacity: 0.5 + } +} |