From 829ff2fea45a863f133278719bfd1ed3c29b3926 Mon Sep 17 00:00:00 2001 From: Antony Baker Date: Wed, 19 Dec 2018 13:03:24 +0000 Subject: Applications: make all buttons equal width, and centre text within buttons. --- qml/mw-ui.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qml/mw-ui.qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 731f5a0..bf2fd69 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -567,7 +567,7 @@ It is highly recommended that you update your system regularly. An Update icon w id: repotag Rectangle { color: "red" - radius: 5 + radius: 3 width: 70; height: 20 Label { anchors.centerIn: parent @@ -582,11 +582,13 @@ It is highly recommended that you update your system regularly. An Update icon w Loader { Component { id: button; Button { + width: view.width * .07 objectName: "launch" onClicked: { launch.command(["gurpmi",name,])} style: ButtonStyle { label: Label { + horizontalAlignment: TextInput.AlignHCenter text: qsTr("Install"); } } @@ -594,11 +596,13 @@ It is highly recommended that you update your system regularly. An Update icon w } Component { id: launcher; Button { + width: view.width * .07 objectName: "launch" onClicked: { launch.command([command,])} style: ButtonStyle { label: Label { + horizontalAlignment: TextInput.AlignHCenter text: qsTr("Launch"); } } -- cgit v1.2.1