summaryrefslogtreecommitdiffstats
path: root/qml/mw-ui.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-12-29 14:41:45 +0100
committerPapoteur <papoteur@mageia.org>2018-12-29 14:41:45 +0100
commit74fff644819b57ae50d90c7138c59fbf4d3b849d (patch)
treeb59b398b4be8ade3e354a759a91390d1a4a375ca /qml/mw-ui.qml
parentebc17444aebb15c7c380dbe1b04dce96488d1f4a (diff)
downloadmageiawelcome-74fff644819b57ae50d90c7138c59fbf4d3b849d.tar
mageiawelcome-74fff644819b57ae50d90c7138c59fbf4d3b849d.tar.gz
mageiawelcome-74fff644819b57ae50d90c7138c59fbf4d3b849d.tar.bz2
mageiawelcome-74fff644819b57ae50d90c7138c59fbf4d3b849d.tar.xz
mageiawelcome-74fff644819b57ae50d90c7138c59fbf4d3b849d.zip
Reorganize positions in applications list
Diffstat (limited to 'qml/mw-ui.qml')
-rw-r--r--qml/mw-ui.qml52
1 files changed, 26 insertions, 26 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index ba2eeca..edec5ac 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -573,6 +573,7 @@ Rectangle {
}
}
delegate: Row {
+ spacing: 10
Image {
source: icon
width: 32
@@ -582,46 +583,24 @@ Rectangle {
//}
Column{
Label {
- leftPadding:5
text: title
font.weight: Font.DemiBold
color: "white"
}
Label {
- leftPadding:5
text: description
font.italic: true
font.pixelSize: Qt.application.font.pixelSize * .9
- width: view.width - (200 + 32 +30 + 100)
+ width: view.width - (200 + 32 +30 + Qt.application.font.pixelSize * 4 * 2)
wrapMode: Text.WordWrap
color: "white"
}
}
- Column{
- Loader {
- Component {
- id: repotag
- Rectangle {
- color: "#FF4C4C"
- radius: 3
- width: 60; height: 20
- Label {
- anchors.centerIn: parent
- text: repo
- font.pixelSize: Qt.application.font.pixelSize * .8
- color: "white"
- }
- }
- }
- Component { id: dumm; Label {text: " "}}
- sourceComponent: repo == "" ? dumm : repotag
- }
-
Loader {
Component { id: button;
Button {
- width: view.width * .06; height: 20
+ width: Qt.application.font.pixelSize * 4; height: Qt.application.font.pixelSize * 1.3
objectName: "launch"
onClicked: {
launch.command(["gurpmi",name,])}
@@ -637,7 +616,7 @@ Rectangle {
}
Component { id: launcher;
Button {
- width: view.width * .06; height: 20
+ width: Qt.application.font.pixelSize * 4; height: Qt.application.font.pixelSize * 1.3
objectName: "launch"
onClicked: {
launch.command([command,])}
@@ -651,11 +630,32 @@ Rectangle {
}
}
}
- Component { id: dummy;Label {text: " ";
+ Component { id: dummy;Label {text: "Installed"
+ font.pixelSize: Qt.application.font.pixelSize * .8
+ width: Qt.application.font.pixelSize * 4
+ color: "white"
}
}
sourceComponent: (installable === "True") ? button : (command === "" ? dummy : launcher)
}
+
+ Loader {
+ Component {
+ id: repotag
+ Rectangle {
+ color: "#FF4C4C"
+ radius: 3
+ width: Qt.application.font.pixelSize * 3; height: Qt.application.font.pixelSize * 1.3
+ Label {
+ anchors.centerIn: parent
+ text: repo
+ font.pixelSize: Qt.application.font.pixelSize * .8
+ color: "white"
+ }
+ }
+ }
+ Component { id: dumm; Label {text: " "}}
+ sourceComponent: repo == "" ? dumm : repotag
}
}