Restylized the button by changing its size and text alignment properties
This commit is contained in:
@ -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
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user