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 have a rounded style.
12 *
13 * @since KirigamiAddons 0.12
14 */
15Kirigami.ShadowedRectangle {
16 // perfect concentric border radius
17 radius: 5 + Kirigami.Units.smallSpacing
18
19 color: Kirigami.Theme.backgroundColor
20
21 border {
22 width: 1
23 color: Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, Kirigami.Theme.frameContrast);
24 }
25
26 shadow {
27 size: Kirigami.Units.gridUnit
28 yOffset: 0
29 color: Qt.rgba(0, 0, 0, 0.2)
30 }
31
32 Kirigami.Theme.inherit: false
33 Kirigami.Theme.colorSet: Kirigami.Theme.View
34}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:54:39 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.