60 lines
1.3 KiB
QML
60 lines
1.3 KiB
QML
import QtQuick
|
|
import QtQuick.Shapes
|
|
|
|
import qs.config
|
|
|
|
Shape {
|
|
id: root
|
|
anchors.top: parent.top
|
|
// anchors.right: parent.right
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
readonly property real rounding: Config.border.rounding
|
|
|
|
implicitWidth: 1000
|
|
implicitHeight: 300
|
|
ShapePath {
|
|
fillColor: Config.catppuccin.base
|
|
strokeWidth: -1
|
|
|
|
PathArc {
|
|
relativeX: root.rounding
|
|
relativeY: root.rounding
|
|
radiusX: root.rounding
|
|
radiusY: root.rounding
|
|
}
|
|
PathLine {
|
|
relativeX: 0
|
|
relativeY: 100
|
|
}
|
|
PathLine {
|
|
relativeX: 300
|
|
relativeY: 0
|
|
}
|
|
PathLine {
|
|
relativeX: 0
|
|
relativeY: -100
|
|
}
|
|
PathArc {
|
|
relativeX: root.rounding
|
|
relativeY: -root.rounding
|
|
radiusX: root.rounding
|
|
radiusY: root.rounding
|
|
}
|
|
|
|
Behavior on fillColor {
|
|
ColorAnimation {
|
|
duration: 500
|
|
easing.type: Easing.BezierSpline
|
|
}
|
|
}
|
|
}
|
|
|
|
Text {
|
|
anchors.centerIn: parent
|
|
text: "This is a test"
|
|
color: "white"
|
|
font.pointSize: 15
|
|
font.bold: true
|
|
}
|
|
}
|