Warning, /maui/mauikit/src/controls.5/private/shapes/X.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15
0002
0003 import org.mauikit.controls 1.3 as Maui
0004
0005 import QtQuick.Shapes 1.12
0006
0007 Shape
0008 {
0009 id: control
0010
0011 /**
0012 * color : color
0013 */
0014 property color color : Maui.Theme.backgroundColor
0015
0016 /**
0017 * borderWidth : int
0018 */
0019 property int borderWidth: 2
0020
0021 layer.enabled: true
0022 layer.samples: 4
0023
0024 Behavior on color
0025 {
0026 Maui.ColorTransition{}
0027 }
0028
0029 ShapePath
0030 {
0031 capStyle: ShapePath.RoundCap
0032 strokeWidth: control.borderWidth
0033 strokeColor: control.color
0034 fillColor: "transparent"
0035 strokeStyle: ShapePath.SolidLine
0036 startX: 0; startY: 0
0037 PathLine { x: control.width; y: control.height }
0038
0039 }
0040
0041
0042 ShapePath
0043 {
0044 capStyle: ShapePath.RoundCap
0045 strokeWidth: control.borderWidth
0046 strokeColor: control.color
0047 fillColor: "transparent"
0048 strokeStyle: ShapePath.SolidLine
0049 startX: control.width; startY: 0
0050 PathLine { x: 0; y: control.height }
0051 }
0052
0053 }