From 6e229e8a618d3eaa4969b68b5af8a69ba436b2f3 Mon Sep 17 00:00:00 2001 From: Antony Baker Date: Sun, 23 Dec 2018 20:21:04 +0000 Subject: Applications: Reduce Install/Launch button size so that they more closely align with corresponding rows. --- qml/mw-ui.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 9193d3f..d7f75a1 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -594,10 +594,11 @@ Rectangle { Rectangle { color: "red" radius: 3 - width: 70; height: 20 + width: 60; height: 20 Label { anchors.centerIn: parent text: repo + font.pixelSize: Qt.application.font.pixelSize * .8 } } } @@ -608,28 +609,32 @@ Rectangle { Loader { Component { id: button; Button { - width: view.width * .07 + width: view.width * .06; height: 20 objectName: "launch" onClicked: { launch.command(["gurpmi",name,])} style: ButtonStyle { label: Label { horizontalAlignment: TextInput.AlignHCenter + verticalAlignment: TextInput.AlignVCenter text: qsTr("Install"); + font.pixelSize: Qt.application.font.pixelSize * .8 } } } } Component { id: launcher; Button { - width: view.width * .07 + width: view.width * .06; height: 20 objectName: "launch" onClicked: { launch.command([command,])} style: ButtonStyle { label: Label { horizontalAlignment: TextInput.AlignHCenter + verticalAlignment: TextInput.AlignVCenter text: qsTr("Launch"); + font.pixelSize: Qt.application.font.pixelSize * .8 } } } -- cgit v1.2.1