summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-12-29 14:41:45 +0100
committerPapoteur <papoteur@mageia.org>2018-12-29 21:28:42 +0100
commitc063a29a784c29e5daa554364e530a7dbda06a3a (patch)
tree1a983e10d7eeab197b93e505089cbe47370a7a8f
parent87fb7c21d2604f486c8e972c897a50e29b020fbf (diff)
downloadmageiawelcome-c063a29a784c29e5daa554364e530a7dbda06a3a.tar
mageiawelcome-c063a29a784c29e5daa554364e530a7dbda06a3a.tar.gz
mageiawelcome-c063a29a784c29e5daa554364e530a7dbda06a3a.tar.bz2
mageiawelcome-c063a29a784c29e5daa554364e530a7dbda06a3a.tar.xz
mageiawelcome-c063a29a784c29e5daa554364e530a7dbda06a3a.zip
Reorganize positions in applications list
-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
}
}