From 8e9806acde529498aa63f80fea32a80c8629e59b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 20 Jan 2019 09:38:44 +0100 Subject: more adaptative layout to RTL/LTR (install software) Move Rpmdrake button Suppress reference to more information tab --- qml/mw-ui.qml | 58 ++++++++++++++++++++++++---------------------------------- 1 file changed, 24 insertions(+), 34 deletions(-) (limited to 'qml/mw-ui.qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index a36cc49..5519618 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -445,12 +445,10 @@ Rectangle { Loader { sourceComponent: slidebackground ; anchors.fill: parent} Column { - //anchors.left: parent.left - //anchors.verticalCenter: parent.verticalCenter - x:10; y: 30 Label { text: qsTr("Install and remove software") - width: slideshow.width * .9 + width: slideshow.width + topPadding: 30; leftPadding: 20; padding: 10 font.bold: true wrapMode: Text.WordWrap @@ -458,31 +456,46 @@ Rectangle { } Label { text: qsTr("With Mageia, you will find the software in the media repositories. Mageia users simply access these media via one of the Software Managers."); - width: slideshow.width * .9; - padding: 10 + width: slideshow.width + padding: 20 wrapMode: Text.WordWrap textFormat: Text.RichText color: "white" } + Button { + id: rpmdrake + anchors.left: parent.left; anchors.leftMargin: 20; + objectName: "launch" + onClicked: { + launch.command(["rpmdrake",])} + style: ButtonStyle { + label: Label { + text: qsTr("RPMdrake")+" *"; + width: slideshow.width * .35 + wrapMode: Text.WordWrap + color: "black" + } + } + } Label { text: qsTr("The next slide shows a small selection of popular applications - any of which may be installed at this point.
"); - width: slideshow.width * .9; - padding: 10 + width: slideshow.width + padding: 20 wrapMode: Text.WordWrap textFormat: Text.RichText color: "white" } Label { text: qsTr("You can find a more detailed list here:"); - width: slideshow.width * .9; - padding: 10 + width: slideshow.width + padding: 20 wrapMode: Text.WordWrap textFormat: Text.RichText color: "white" } Button { id: listApplicationsWiki - x: 10 + anchors.left: parent.left; anchors.leftMargin: 20 objectName: "link" //: Translate only if the link is to a specific page for your language onClicked: { link.weblink(qsTr("https://wiki.mageia.org/en/List_of_applications"))} @@ -495,29 +508,6 @@ Rectangle { } } } - Label { - text: "
"+qsTr("You can find details of how to contact the community by selecting the More information tab."); - width: slideshow.width * .9; - padding: 10 - wrapMode: Text.WordWrap - textFormat: Text.RichText - color: "white" - } - Button { - id: rpmdrake - x: 10 - objectName: "launch" - onClicked: { - launch.command(["rpmdrake",])} - style: ButtonStyle { - label: Label { - text: qsTr("RPMdrake")+" *"; - width: slideshow.width * .35 - wrapMode: Text.WordWrap - color: "black" - } - } - } } Label { anchors {top: parent.bottom; topMargin: 3; horizontalCenter: parent.left; horizontalCenterOffset: parent.width * .4 } -- cgit v1.2.1