10import org.kde.kirigami as Kirigami
11import org.kde.kirigami.templates as KT
67 leftPadding: bgFillRect.anchors.leftMargin + Kirigami.Units.smallSpacing
68 topPadding: bgFillRect.anchors.topMargin + Kirigami.Units.smallSpacing
69 rightPadding: bgFillRect.anchors.rightMargin + Kirigami.Units.smallSpacing
70 bottomPadding: bgFillRect.anchors.bottomMargin + Kirigami.Units.smallSpacing
72 background: Rectangle {
75 color: switch (root.type) {
76 case Kirigami.MessageType.Positive: return Kirigami.Theme.positiveTextColor;
77 case Kirigami.MessageType.Warning:
return Kirigami.Theme.neutralTextColor;
78 case Kirigami.MessageType.Error:
return Kirigami.Theme.negativeTextColor;
79 default:
return Kirigami.Theme.activeTextColor;
82 radius: root.position === KT.InlineMessage.Position.Inline ? Kirigami.Units.cornerRadius : 0
89 leftMargin: root.position === KT.InlineMessage.Position.Inline ? 1 : 0
90 topMargin: root.position === KT.InlineMessage.Position.Header ? 0 : 1
91 rightMargin: root.position === KT.InlineMessage.Position.Inline ? 1 : 0
92 bottomMargin: root.position === KT.InlineMessage.Position.Footer ? 0 : 1
95 color: Kirigami.Theme.backgroundColor
97 radius: bgBorderRect.radius * 0.60
101 anchors.fill: bgFillRect
103 color: bgBorderRect.color
107 radius: bgFillRect.radius
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:32 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.