From 2b662e58abfea73f2edce7919f807c33f73710ef Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 3 Mar 2025 22:18:11 +0200 Subject: [PATCH] Restylized the button by changing its size and text alignment properties --- src/Project-Orion/Button.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Project-Orion/Button.qml b/src/Project-Orion/Button.qml index 13bfa94..db0dc51 100644 --- a/src/Project-Orion/Button.qml +++ b/src/Project-Orion/Button.qml @@ -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 }