Restylized the button by changing its size and text alignment properties

This commit is contained in:
2025-03-03 22:18:11 +02:00
parent 1793f5b949
commit 2b662e58ab

View File

@ -6,20 +6,20 @@ Rectangle {
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
width: parent.width * 0.2
height: parent.height * 0.2
width: parent.width * 0.25
height: parent.height * 0.1
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
color: clickablearea.pressed ? "darkgrey" : "gray"
radius: 4
color: clickablearea.pressed ? "dimgrey" : "gray"
radius: 2
Text
{
color: myPalette.buttonText
text: button.text
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width * 0.8
horizontalAlignment: Text.AlignHCenter
width: parent.width
wrapMode: Text.Wrap
}