Kirigami-addons

DialogRoundedBackground.qml
1// SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick 2.15
5import org.kde.kirigami 2.20 as Kirigami
6
7/**
8 * @brief Stylish background for dialogs
9 *
10 * This item can be used as background for any dialog in your application
11 * and will provide a rounded.
12 *
13 * @since KirigamiAddons 0.12
14 */
15Kirigami.ShadowedRectangle {
16 radius: Kirigami.Units.largeSpacing
17 color: Kirigami.Theme.backgroundColor
18
19 border {
20 width: 1
21 color: Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, Kirigami.Theme.frameContrast);
22 }
23
24 shadow {
25 size: Kirigami.Units.gridUnit
26 yOffset: 0
27 color: Qt.rgba(0, 0, 0, 0.2)
28 }
29
30 Kirigami.Theme.inherit: false
31 Kirigami.Theme.colorSet: Kirigami.Theme.View
32}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:46:57 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.