5import QtQuick.Controls as QQC2
7import org.kde.kirigami as Kirigami
12 required property bool isEnd
13 required property bool isStart
15 readonly property color borderColor: if (enabled && (visualFocus || hovered || down)) {
16 return Kirigami.Theme.focusColor
18 return Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, Kirigami.Theme.frameContrast)
21 visible: Kirigami.Settings.isMobile
25 source: root.icon.name
26 anchors.centerIn: parent
27 implicitHeight: Kirigami.Units.iconSizes.small
28 implicitWidth: Kirigami.Units.iconSizes.small
32 background: Kirigami.ShadowedRectangle {
33 implicitWidth: implicitHeight
34 implicitHeight: Kirigami.Units.gridUnit * 2
36 Kirigami.Theme.colorSet: Kirigami.Theme.Button
37 color: root.down ? Kirigami.Theme.alternateBackgroundColor: Kirigami.Theme.backgroundColor
40 topLeftRadius: (!root.mirrored && root.isStart) || (root.mirrored && root.isEnd) ? 4 : 0
41 bottomLeftRadius: (!root.mirrored && root.isStart) || (root.mirrored && root.isEnd) ? 4 : 0
42 topRightRadius: (!root.mirrored && root.isEnd) || (root.mirrored && root.isStart) ? 4 : 0
43 bottomRightRadius: (!root.mirrored && root.isEnd) || (root.mirrored && root.isStart) ? 4 : 0
48 color: root.borderColor
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:05:53 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.