examples/Image Colors/components/ShadowedLabel.qml
raw| 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2024 ivan tkachenko <[email protected]> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | pragma ComponentBehavior: Bound |
| 8 | |
| 9 | import QtQuick |
| 10 | import QtQuick.Controls as QQC2 |
| 11 | import Qt5Compat.GraphicalEffects as GE |
| 12 | |
| 13 | QQC2.Label { |
| 14 | layer.effect: GE.DropShadow { |
| 15 | verticalOffset: 1 |
| 16 | radius: 4.0 |
| 17 | samples: radius * 2 + 1 |
| 18 | spread: 0.35 |
| 19 | color: "black" |
| 20 | } |
| 21 | } |