2026-01-27 23:47:09 +01:00
|
|
|
import QtQuick
|
|
|
|
|
import qs
|
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
|
|
|
|
|
|
Button {
|
|
|
|
|
id: control
|
|
|
|
|
property bool showText: false
|
|
|
|
|
property string customText
|
|
|
|
|
|
|
|
|
|
contentItem: CustomText {
|
|
|
|
|
id: contentText
|
|
|
|
|
text: control.customText
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
|
}
|
|
|
|
|
background: Rectangle {
|
|
|
|
|
id: contentBackground
|
|
|
|
|
radius: parent.implicitHeight / 2
|
2026-02-13 22:58:33 +01:00
|
|
|
color: Colors.surfaceContainerHigh
|
2026-01-27 23:47:09 +01:00
|
|
|
}
|
|
|
|
|
}
|