| 1 |
// Copyright (C) 2020 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick |
| 5 |
import Qt5Compat.GraphicalEffects |
| 6 |
|
| 7 |
Rectangle { |
| 8 |
color: "black" |
| 9 |
|
| 10 |
RectangularGlow { |
| 11 |
id: effect |
| 12 |
anchors.fill: rect |
| 13 |
glowRadius: 10 |
| 14 |
spread: 0.2 |
| 15 |
color: "white" |
| 16 |
cornerRadius: rect.radius + glowRadius |
| 17 |
} |
| 18 |
|
| 19 |
Rectangle { |
| 20 |
id: rect |
| 21 |
color: "black" |
| 22 |
anchors.centerIn: parent |
| 23 |
width: Math.round(parent.width / 1.5) |
| 24 |
height: Math.round(parent.height / 2) |
| 25 |
radius: 25 |
| 26 |
} |
| 27 |
} |