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 }
|
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
|
||||||
|
|
||||||
width: parent.width * 0.2
|
width: parent.width * 0.25
|
||||||
height: parent.height * 0.2
|
height: parent.height * 0.1
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
color: clickablearea.pressed ? "darkgrey" : "gray"
|
color: clickablearea.pressed ? "dimgrey" : "gray"
|
||||||
radius: 4
|
radius: 2
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
color: myPalette.buttonText
|
color: myPalette.buttonText
|
||||||
text: button.text
|
text: button.text
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
width: parent.width * 0.8
|
width: parent.width
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user