initial commit
This commit is contained in:
24
bar/Pill.qml
Normal file
24
bar/Pill.qml
Normal file
@@ -0,0 +1,24 @@
|
||||
import QtQuick
|
||||
import QtQuick.Shapes
|
||||
import QtQuick.Layouts
|
||||
|
||||
Rectangle {
|
||||
id: pill
|
||||
default property alias content: container.data
|
||||
|
||||
// Center in the middle of the bar
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
implicitWidth: container.childrenRect.width + 15
|
||||
implicitHeight: container.childrenRect.height + 12
|
||||
|
||||
color: "#939ab7"
|
||||
radius: 18
|
||||
|
||||
Loader {
|
||||
id: container
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user